You are on page 1of 12

Question 1 : 1 In JavaScript, onclick is equivalent to which two events in sequence? .

. () ***onmousedown and onmouseup () onmouseup and onmouseout () onmousedown and onmouseout () onmouseover and onmousedown Question 2 : 1 What is the correct HTML tag for inserting the line break? ***br Question 3 : 1 In JavaScript, variables declared within a function become: . () ***Local () None of the above () Global () Cannot declare a variable within a function Question 4 : 1 Which of the following options is post-increment operator? . () ***x++ () x-() ++ x () --x

Question 5 : 1 Which of the operators corresponds to the following description: "True if both x and y are true" ? . () ***x && y () x xor y () x or y () x || y

Question 6 : 1 With SQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Peter" and the "LastName" is "Jackson"? . () ***a. SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson' () b. SELECT FirstName='Peter', LastName='Jackson' FROM Persons () c. SELECT * FROM Persons WHERE FirstName<>'Peter' AND LastName<>'Jackson'

Question 7 : 1 What is the correct HTML tag for inserting a line break? . () ***a. &lt;br /&gt; () b. &lt;lb /&gt; () c. &lt;break /&gt; Question 8 : 1 How to input video on your webpage with HTML5?

. () () You have to use flash to input video on a webpage () () \ ***HTML5 provides us with two new elements that we can use to add video to our web pages: the <video> element, which weve already mentioned, and the <source> element.

Question 9 : 1 Which SQL statement is used to delete data from a database? . () a. REMOVE () b. COLLAPSE () ***c. DELETE

Question 10 : 1 How to map your image with clickable regions? . *** The <map> tag is used to define a client-side image-map. An image-map is an image with clickable areas.

Question 11 : 1 Which SQL statement is used to insert new data in a database? . () a. INSERT NEW () b. ADD RECORD () c. ADD NEW () ***d. INSERT INTO

Question 12 : 1 To execute concatenation operation it is necessary to use next symbol: . () & () * () . PHP () + Javascript

Question 13 : 1 Choose the correct HTML tag to make a text italic . () ***a. &lt;i&gt; () b. &lt;italic&gt; Question 14 : 1 Which is not a correct name for an XML element? . () ***<7eleven> () () All 3 names are incorrect ()

Question 15 : 1 In JavaScript, which of the following is not a comparison operator? . () <=

() != () *** = () <

Question 16 : 1 What is the correct HTML for inserting an image? . () image.gif () () () ***<img src="image url" alt="description" />

Question 17 : 1 In JavaScript, var a= 'A'; var b = 2; a = b; Variable 'a' now contains? . () A number () None of the above () ****Text???? () True

Question 18 : 1 Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements? . () ***toggleClass() () alternateClass() () switchClass()

() changeClass() Question 19 : 1 How do you get information from a form that is submitted using the "get" method? . () ***a. $_GET[]; () b. Request.Form; () c. Request.QueryString; Question 20 : 1 What is a correct way for adding a background color in HTML? . () yellow () () ****<body bgcolor=" "> Question 21 : 1 With SQL, how do you select all the records from a table named "Persons" where the "LastName" is alphabetically between (and including) "Hansen" and "Pettersen"? . () a. SELECT LastName>'Hansen' AND LastName<'Pettersen' FROM Persons () ***b. SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen' () c. SELECT * FROM Persons WHERE LastName>'Hansen' AND LastName<'Pettersen'

Question 22 : 1 What is the correct HTML for inserting a background image? . ()

() () ***< body background = "">

Question 23 : 1 Which of the following functions will report to date, which was three days ago? . () Time()-3; () Mktime( 0,0,0,05,3); () Date("Y-m-3"); () Date("Y-m-d", time()-3*24*60*60); Question 24 : 1 How to input audio on your webpage with HTML5? . () () () You need to use flash () ***<audio>???

Question 25 : 1 How can you create an e-mail link? . () a. &lt;a href="xxx@yyy"&gt; () b. &lt;mail&gt;xxx@yyy&lt;/mail&gt; () c. &lt;mail href="xxx@yyy"&gt; () ***d. &lt;a href="mailto:xxx@yyy"&gt;

1How can you create an e-mail link? . () a. a href="xxx@yyy"; **** () b. mail&gt;xxx@yyy&lt;/mail; () c. mail href="xxx@yyy"; () d. a href="mailto:xxx@yyy"; 2 Which of the following is true? . () All of the above is true () You can use jQuery by referring to a jQuery library hosted elsewhere/****** () You can't use jQuery unless you download the jQuery file () You can use jQuery without explicit referring, modern browsers support it themselves 3 Which of the looping statements corresponds to the following description: "Loops through a block of code once, and then repeats the loop as long as a specified condition is true"? . () foreach () do...while ***** () While () for 4Which of the array operators corresponds to the following description: "True if x and y have the same key/value pairs " ? . () x+y () x === y () x == y *** () x <> y 5What HTML tag identifies Javascript added to a web page?

6Which of these tags are referred to the table tags? table, td, th, tr

7What is the correct way to include the file "time.inc" ? a) <!--include file="time.inc"--> b) <?php include_file("time.inc"); ?> c) <?php require("time.inc"); ?> - correct answer d) <% include file="time.inc" %>

8Let the variable $link = mysqli_connect("localhost", USERNAME, PASSWORD, DBNAME) defines a connection to a database. Determine which of the following definitions corresponds to the string value "localhost"? . () uri () url () server name**** () port 9 What is the correct way to connect to a MySQL database? . () a. mysql_open("localhost"); () b. mysql_connect("localhost");***** () c. connect_mysql("localhost"); () d. dbopen("localhost"); 10Which of the following options is pre-increment operator? . () --x () ++ x**** () x++ () x-11What is MVC? . () Pattern which allows user to interact with web services () Architectural pattern that splits interactions between users and applications***** () Technology for developing interactive web pages () Tools which allows developer to make security in their applications 12Which of the following functions will display file on browser?

. () Fwrite () Readfile () Fopen**** () Fread 13With SQL, how can you delete the records where the "FirstName" is "Peter" in the Persons Table? . () a. DELETE ROW FirstName='Peter' FROM Persons () b. DELETE FirstName='Peter' FROM Persons () c. DELETE FROM Persons WHERE FirstName = 'Peter' **** 14For what part of xml tree is this template: . () Element ****? () Name space () Attribute () Comments 15In JavaScript 'do while' loop the control statement is tested . () After each time through the loop*** () Before each time through the loop () Only once at the start () Before and after each time through the loop 16How can you make a list that lists the items with numbers? By using this HTML tag <ol> 17 In JavaScript, can objects be converted into strings and back? . () Yes ***??? () No () Yes, but only some () Yes, but only one way, not back

18The OR operator displays a record if ANY conditions listed are true. The AND operator displays a record if ALL of the conditions listed are true true 19Which of the following examples define not identical operator? . () x !=== y () x != y *** () x !== y () x <> y 20Which of the following definitions right? . () With XSLT you can transport an XML document () With XSLT you can display an XML document () With XSLT you can transform an XML document into HTML **** () With XSLT you can change an XML document 21How can you create an e-mail link? . () a. a href="xxx@yyy"; **** () b. mail&gt;xxx@yyy&lt;/mail; () c. mail href="xxx@yyy"; () d. a href="mailto:xxx@yyy"; 22jQuery is a library for . () client and server scripting () server scripting () client scripting *** () inter-server scripting 23Which of the following is correct? . () jQuery is a database query system ()

jQuery is a JSON library () jQuery is a JavaScript library *** () jQuery is a CSS framework 24Which SQL statement is used to return only different values? . () a. SELECT DIFFERENT () b. SELECT UNIQUE () c. SELECT DISTINCT ***

You might also like