Warning: Cannot modify header information - headers already sent by (output started at /home/dealkhus/cosmoread.com/wp-includes/formatting.php:5100) in /home/dealkhus/cosmoread.com/wp-content/themes/cosmoread/header.php on line 18

Warning: Cannot modify header information - headers already sent by (output started at /home/dealkhus/cosmoread.com/wp-includes/formatting.php:5100) in /home/dealkhus/cosmoread.com/wp-content/themes/cosmoread/header.php on line 19

Warning: Cannot modify header information - headers already sent by (output started at /home/dealkhus/cosmoread.com/wp-includes/formatting.php:5100) in /home/dealkhus/cosmoread.com/wp-content/themes/cosmoread/header.php on line 20

Warning: Cannot modify header information - headers already sent by (output started at /home/dealkhus/cosmoread.com/wp-includes/formatting.php:5100) in /home/dealkhus/cosmoread.com/wp-content/themes/cosmoread/header.php on line 21
Home » Education » 30 Interview question on HTML5,CSS3, JAVASCRIPT, JQUERY

30 Interview question on HTML5,CSS3, JAVASCRIPT, JQUERY

Below are the 30 Good Questions and assessments taken by Fancied Media for their Rainbow band Associates,if you have any thing you can comment below.

1)      Using HTML How can you open a link in a new browser window?

  1. <a href=”url” target=”_blank”>
  2. <a href=”url” new>
  3. <a href=”url” target=”new”>
  4. No it  is possible through Javascript

2)      Choose the correct HTML to left-align the content inside a table cell?

  1. <tdleft>
  2. <td leftalign>
  3. <td valign=”left”>
  4. <td align=”left”>
  5. None of the above

3)      What is the correct HTML for making a checkbox?

  1. <checkbox>
  2. <input type=”check” />
  3. <input type=”checkbox” />
  4. <check>

4)      Which is the correct CSS syntax?

  1. body:color=black
  2. body {color: black}
  3. {body:color=black(body}
  4. {body;color:black}
  5. None of the above

5)      How do you display a border like this:
The top border = 10 pixels

The bottom border = 5 pixels

The left border = 20 pixels

The right border = 1pixel?

a. border-width:10px 1px 5px 20px

b. border-width:5px 20px 10px 1px

c. border-width:10px 5px 20px 1px

d. border-width:10px 20px 5px 1px

6)      To define the space between the element’s border and content, you use the padding property, but are you allowed to use negative values?

  1. Yes
  2. No
  3. Can’t Say
  4. May Be
  5. None of the above

7)      How does a “while” loop start?

  1. while i=1 to 10
  2. while (i<=10)
  3. while (i<=10;i++)
  4. None of the above

8)      What is the correct way to write a JavaScript array?

  1. var txt = new Array:1=(“Sashi”)2=(“Kanta”)3=(“Nayak”)
  2. var txt = new Array=”Sashi”,”Kanta”,”Nayak”
  3. var txt = new Array(“Sashi”,”Kanta”,”Nayak”)
  4. var txt = new Array(1:”Sashi”,2:”Kanta”,3:”Nayak”)
  5. None of the above

9)      How do you find the number with the highest value of x and y?

  1. Math.ceil(x,y)
  2. ceil(x,y)
  3. top(x,y)
  4. Math.max(x,y)
  5. None of the above

10)   How do you put a message in the browser’s status bar?

  1. statusbar = “put your message here”
  2. window.status = “put your message here”
  3. window.status=”Some text in the status bar!!”;
  4. window.status(“put your message here”)
  5. status(“put your message here”)
  6. None of the above

11)   Which sign does jQuery use as a shortcut for jQuery?

  1. the % sign
  2. the ? Sign
  3. the $ sign
  4. the # Sign
  5. None of the above
  6. None of the above

12)   What is the correct jQuery code to set the background color of all p elements to red?

  1. $(“p”).css(“background-color”,”red”);
  2. $(“p”).manipulate(“background-color”,”red”);
  3. $(“p”).style(“background-color”,”red”);
  4. $(“p”).layout(“background-color”,”red”);
  5. None of the above

13)   Which jQuery method should be used to deal with name conflicts?

  1. conflict()
  2. noConflict()
  3. nameConflict()
  4. noNameConflict()

14)   Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements?

  1. toggleClass()
  2. switch()
  3. altClass()
  4. switchClass()

15)   Look at the following jQuery selector: $(“div#intro .head”). What does it select?

  1. The first element with id=”head” inside any div element with
  2. All div elements with id=”intro” or class=”head”
  3. All elements with inside the first div element with id=”intro”
  4. All of the above
  5. None of the above

16)   What is the correct way to connect to a MySQL database?

  1. mysql_open(“localhost”);
  2. connect_mysql(“localhost”);
  3. mysql_connect(“localhost”);
  4. dbopen(“localhost”);

17)   In PHP, the die () and exit () functions do the exact same thing.

  1. Yes
  2. No
  3. Can’t Say
  4. All of the above
  5. None of the above

18)   With SQL, how do you select a column named “FirstName” from a table named “Persons”?

  1. SELECT FirstName FROM Persons
  2. SELECT Persons.FirstName
  3. EXTRACT FirstName FROM Persons
  4. All of the above
  5. None of the above

19)   With SQL, how do you select all the records from a table named “Persons” where the value of the column “FirstName” is “Kuresh”?

  1. SELECT * FROM Persons WHERE FirstName=’Kuresh’
  2. SELECT [all] FROM Persons WHERE FirstName=’Kuresh’
  3. SELECT * FROM Persons WHERE FirstName<>’Kuresh’
  4. SELECT [all] FROM Persons WHERE FirstName LIKE ‘Kuresh’

20)   With SQL, how do you select all the records from a table named “Persons” where the value of the column “FirstName” starts with an “a”?

  1. SELECT * FROM Persons WHERE FirstName LIKE ‘%a’
  2. SELECT * FROM Persons WHERE FirstName=’%a%’
  3. SELECT * FROM Persons WHERE FirstName LIKE ‘a%’
  4. SELECT * FROM Persons WHERE FirstName=’a’

21)   With SQL, how do you select all the records from a table named “Persons” where the “FirstName” is “Kuresh” and the “LastName” is “Chandra”?

  1. SELECT FirstName=’Kuresh’, LastName=’Chandra’ FROM Persons
  2. SELECT * FROM Persons WHERE FirstName<>’Kuresh’ AND LastName<>’Chandra’
  3. SELECT * FROM Persons WHERE FirstName=’Kuresh’ AND LastName=’Chandra’
  4. All of the above
  5. None of the above

22)   With SQL, how do you select all the records from a table named “Persons” where the “LastName” is alphabetically between (and including) “Satyajit” and “Pattnaik”?

  1. SELECT LastName>’Satyajit’ AND LastName<‘Pattnaik’ FROM Persons
  2. SELECT * FROM Persons WHERE LastName BETWEEN ‘Satyajit’ AND ‘Pattnaik’
  3. SELECT * FROM Persons WHERE LastName>’Hansen’ AND LastName<‘Pattnaik’
  4. All of the above
  5. None of the above

23)   Which SQL keyword is used to sort the result-set?

  1. SORT BY
  2. SORT
  3. ORDER
  4. ORDER BY
  5. All of the above
  6. None of the above

24)   With SQL, how can you return all the records from a table named “Persons” sorted descending by “FirstName”?

  1. SELECT * FROM Persons SORT BY ‘FirstName’ DESC
  2. SELECT * FROM Persons ORDER FirstName DESC
  3. SELECT * FROM Persons SORT ‘FirstName’ DESC
  4. SELECT * FROM Persons ORDER BY FirstName DESC
  5. All of the above
  6. None of the above

25)   With SQL, how can you insert a new record into the “Persons” table?

  1. INSERT INTO Persons VALUES (‘Sashikanta’, ‘Nayak’)
  2. INSERT VALUES (‘Sashikanta’, ‘Nayak’) INTO Persons
  3. INSERT (‘Sashikanta’, ‘Nayak’) INTO Persons
  4. All of the above
  5. None of the above

26)   With SQL, how can you return the number of records in the “Persons” table?

  1. SELECT COLUMNS(*) FROM Persons
  2. SELECT COUNT(*) FROM Persons
  3. SELECT COUNT() FROM Persons
  4. SELECT COLUMNS() FROM Persons
  5. All of the above
  6. None of the above

27)   How we can apply css in multiple Selectors in jquery.

  1. $(“div,span,p.myClass”).css(“border”,”1px solid green”);
  2. $(“*”).css(“border”,”1px solid green”);
  3. $(“*.*”).css(“border”,”1px solid green”);
  4. $(“SELECT ALL”).css(“border”,”1px solid green”);
  5. All of the above
  6. None of the above

28)   How can we get value of textbox in jQuery

  1. $(“#textboxname”).val();
  2. jQuery(“#id”).val();
  3. var divValue = $(”#sampleDivId”).val();
  4. All of the above
  5. None of the above

29)   What is the difference between mysql_fetch_object and mysql_fetch_array?

  1. Mysql_fetch_object returns the result from the database as objects while mysql_fetch_array returns result as an array. This will allow access to the data by the field names. E.g. using mysql_fetch_object field can be access
  2. This will allow access to the data by the field names. E.g. using mysql_fetch_object field can be accessed as $result->name and using mysql_fetch_array field can be accessed as $result->[name]
  3. All of the above
  4. None of the above

30)   How do you create sub domains using PHP? For e.g. yourname.dev2d.com

  1. Wild card domains can be used. Sub domains can be created by first creating a sub directory in the /htdocs folder.
  2. /htdocs/mydomain. Then, the host files needs to be modified to define the sub domain.
  3. If the sub domains are not configured explicitly, all requests should be thrown to the main domain.
  4. All of the above
  5. None of the above