Posts

Showing posts from March, 2017

SQL Interview Questions and Answers DDL DML queries

Find the below link to see all SQL Queries for Day 1, 2 and 3.😉 Click Here You can even run the above scripts by logging into LiveSQL website by registering on the web portal. 1. HTML stands for Hyper Text Markup Language. 2.  HTML is an improvised version of SGML. 3. SGML stands for  Standard Generalized Markup Language. 4. HTML is an encoding language for creating webpages. 5. HTML consists of Tags and elements. 6 . .html and .htm are extensions for HTML. 7. elements in HTML enclosed in angular brackets are called Tags . 8. Tags are case sensitive. FALSE 9. <body background="images/logo.PNG" bgcolor="yellow" font="red" leftmargin="60"> must be text="red" 10. anchor element marks the text as hyperlink. 11. h1 tag display the heading in big size and h6 tag display the heading in small size.

Java Practice Questions MCQ

1. What is the output? class point1 { static void a (int x, int y) { this.x=x; //non-static variable this cannot be referenced from a static context this.y=y; System.out.println(x+ “,”+y); } } class point { public static void main (String[] args) { point1 pp=new point1(); pp.a(4,3); } } a. 4 ,3 b. 3 ,4 c. Compile Error d. None of the above ------------------------------------------------------------------------------------------------------- 2. Local variables cannot be declared as final.(True / False) .... False ----------------------------------------------------------------------------------------------------- 3. What is the output? class A { A(int x, int y) { this.x=x; this.y=y; } A() { this(2,3); } public static void main(String[] args) { A a1 = new A(); System.out.println(“x=”+a1.x+”,y=”+a1.y); // cannot find symbol x and y } } a. x=2 y=3 b. x=-1