SlideShare une entreprise Scribd logo
1  sur  8
HTML
1. What does HTML stand for ?
Answer : Hyper Text Markup Language
2. Who is making the Web standards ?
Answer : The World Wide Web Consortium
3. Choose the correct HTML tag for the largest heading ?
Answer : <h1>
4. What is the correct HTML tag for inserting a line break ?
Answer : <br />
5. What is the preferred way for adding a background color in HTML ?
Answer : <body style="background-color:yellow">
6. Choose the correct HTML tag to make a text bold ?
Answer : <b>
7. Choose the correct HTML tag to make a text italic ?
Answer : <i>
8. What is the correct HTML for creating a hyperlink ?
Answer : <a href="http://www.w3schools.com/">W3Schools</a>
9. How can you create an e-mail link ?
Answer : <a href="mailto:xxx@yyy">
10. How can you open a link in a new browser window ?
Answer : <a href="url" target="_blank">
11. Which of these tags are all <table> tags ?
Answer : <table><tr><td>
12. Choose the correct HTML to left-align the content inside a tablecell ?
Answer : <td align="left">
13. How can you make a list that lists the items with numbers ?
Answer : <ol>
14. How can you make a list that lists the items with bullets ?
Answer : <ul>

15. What is the correct HTML for making a checkbox ?
Answer : <input type="checkbox" />
16. What is the correct HTML for making a text input field ?
Answer : <input type="text" />
17. What is the correct HTML for making a drop-down list ?
Answer : <select>
18. What is the correct HTML for making a text area ?
Answer : <textarea>
19. What is the correct HTML for inserting an image ?
Answer : <img src="image.gif" alt="MyImage" />
20. What is the correct HTML for inserting a background image ?
Answer : <body background="background.gif">
________________________________________
CSS

1.What does CSS stand for?

Answer : Cascading Style Sheets

2.What is the correct HTML for referring to an external style sheet?

Answer : <link rel="stylesheet" type="text/css" href="mystyle.css">

3.Where in an HTML document is the correct place to refer to an external style
sheet?

Answer : In the <head> section

4.Which HTML tag is used to define an internal style sheet?

Answer : <style>

5.Which HTML attribute is used to define inline styles?
Answer : style

6.Which is the correct CSS syntax?

Answer : body {color: black}

7.How do you insert a comment in a CSS file?

Answer : /* this is a comment */

8.Which property is used to change the background color?

Answer : background-color:

9.How do you add a background color for all <h1> elements?

Answer : h1 {background-color:#FFFFFF}

10.How do you change the text color of an element?

Answer : color:

11.Which CSS property controls the text size?

Answer : font-size

12.What is the correct CSS syntax for making all the <p> elements bold?

Answer : p {font-weight:bold}

13.How do you display hyperlinks without an underline?

Answer : a {text-decoration:none}

14.How do you make each word in a text start with a capital letter?

Answer : text-transform:capitalize

15.How do you change the font of an element?

Answer : font-family:

16.How do you make the text bold?

Answer : font-weight:bold

17.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?

Answer : border-width:10px 1px 5px 20px

18.How do you change the left margin of an element?

Answer : margin-left:

19.To define the space between the element's border and content, you use the
padding property, but are you allowed to use negative values?

Answer : no

20.How do you make a list that lists its items with squares?
Answer : list-style-type: square
________________________________________
JavaScript
1. Inside which HTML element do we put the JavaScript?
Answer : < script >
2. What is the correct JavaScript syntax to write "Hello World"?
Answer : ("Hello World")
3. Where is the correct place to insert a JavaScript?
Answer : Both the <head> section and the <body> section are correct
4. What is the correct syntax for referring to an external script called
"xxx.js"?
Answer : < script type="text/javascript" src="xxx.js">
5. The external JavaScript file must contain the <script> tag
Answer : False
6. How do you write "Hello World" in an alert box?
Answer : alert("Hello World")
7. How do you create a function?
Answer : function myFunction()
8. How do you call a function named "myFunction"?
Answer : myFunction()
9. How do you write a conditional statement for executing some code if "i" is
equal to 5?
Answer : if (i==5)
10. How do you write a conditional statement for executing some code if "i" is
NOT equal to 5?
Answer : if (i != 5)
11. How does a "while" loop start?
Answer : while (i<=10)
12. How does a "for" loop start?
Answer : for (i = 0; i <= 5; i++)
13. How can you add a comment in a JavaScript?
Answer : //This is a comment
14. What is the correct JavaScript syntax to insert a comment that has more than
one line?
Answer : /*This comment has
more than one line*/
15. What is the correct way to write a JavaScript array?
Answer : var txt = new Array("tim","kim","jim")
16. How do you round the number 7.25, to the nearest integer?
Answer : Math.round(7.25)
17. How do you find the number with the highest value of x and y?
Answer : Math.max(x,y)
18. What is the correct JavaScript syntax for opening a new window called "w2" ?
Answer : w2=window.open("http://www.w3schools.com/");
19. How do you put a message in the browser's status bar?
Answer : window.status = "put your message here"
20. How can you find a client's browser name?
Answer : navigator.appName
________________________________________
JQuery
1. Which of the following is correct?
Answer : jQuery is a JavaScript Library
2. jQuery uses CSS selectors and XPath expressions to select elements?
Answer : True
3. Which sign does jQuery use as a shortcut for jQuery?
Answer : the $ sign
4. With jQuery, look at the following selector: $("div"). What does it select?
Answer : All div elements
5. Is jQuery a library for client scripting or server scripting?
Answer : Client scripting
6. Is it possible to use jQuery together with AJAX?
Answer : Yes
7. The jQuery html() method works for both HTML and XML documents
Answer : False
8. What is the correct jQuery code to set the background color of all p elements
to red?
Answer : $("p").css("background-color","red");
9. With jQuery, look at the following selector: $("div.intro"). What does it
select?
Answer : All div elements with class="intro"
10. Which jQuery method is used to hide selected elements?
Answer : hide()
11. Which jQuery method is used to set one or more style properties for selected
elements?
Answer : css()
12. Which jQuery method is used to perform an asynchronous HTTP request?
Answer : jQuery.ajax()
13. What is the correct jQuery code for making all div elements 100 pixels high?
Answer : $("div").height(100)
14. Which statement is true?
Answer : To use jQuery, you can refer to a hosted jQuery library at Google
15. What scripting language is jQuery written in?
Answer : JavaScript
16. Which jQuery function is used to prevent code from running, before the
document is finished loading?
Answer : $(document).ready()
17. Which jQuery method should be used to deal with name conflicts?
Answer : noConflict()
18. Which jQuery method is used to switch between adding/removing one or more
classes (for CSS) from selected elements?
Answer : toggleClass()
19. Look at the following jQuery selector: $("div#intro .head"). What does it
select?
Answer : All elements with class="head" inside the first div element with
id="intro"
20. Is jQuery a W3C standard?
Answer : no
________________________________________
PHP
1. What does PHP stand for?
Answer : PHP: Hypertext Preprocessor
2. PHP server scripts are surrounded by delimiters, which?
Answer : <?php…?>
3. How do you write "Hello World" in PHP
Answer : echo "Hello World";
4. All variables in PHP start with which symbol?
Answer : $
5. What is the correct way to end a PHP statement?
Answer : ;
6. The PHP syntax is most similar to:
Answer : Perl and C
7. How do you get information from a form that is submitted using the "get"
method?
Answer : $_GET[];
8. When using the POST method, variables are displayed in the URL:
Answer : False
9. In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for
strings:
Answer : True
10. Include files must have the file extension ".inc"
Answer : false
11. What is the correct way to include the file "time.inc" ?
Answer : <?php require("time.inc"); ?>
12. What is the correct way to create a function in PHP?
Answer : function myFunction()
13. What is the correct way to open the file "time.txt" as readable?
Answer : fopen("time.txt","r");
14. PHP allows you to send emails directly from a script
Answer : True
15. What is the correct way to connect to a MySQL database?
Answer : mysql_connect("localhost");
16. What is the correct way to add 1 to the $count variable?
Answer : $count++;
17. What is a correct way to add a comment in PHP?
Answer : /*…*/
18. PHP can be run on Microsoft Windows IIS(Internet Information Server):
Answer : True

19. In PHP, the die() and exit() functions do the exact same thing.
Answer : true
20. Which one of these variables has an illegal name?
Answer : $my-Var
________________________________________
SQL
1.What does SQL stand for?
Answer : Structured Query Language
2. Which SQL statement is used to extract data from a database?
Answer : SELECT
3. Which SQL statement is used to update data in a database?
Answer : UPDATE
4. Which SQL statement is used to delete data from a database?
Answer : DELETE
5. Which SQL statement is used to insert new data in a database?
Answer : INSERT INTO
6. With SQL, how do you select a column named "FirstName" from a table named
"Persons"?
Answer : SELECT FirstName FROM Persons
7. With SQL, how do you select all the columns from a table named "Persons"?
Answer : SELECT * FROM Persons
8. With SQL, how do you select all the records from a table named "Persons"
where the value of the column "FirstName" is "Peter"?
Answer : SELECT * FROM Persons WHERE FirstName='Peter'
9. 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"?
Answer : SELECT * FROM Persons WHERE FirstName LIKE 'a%'
10. The 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 ?
Answer : True
11. With SQL, how do you select all the records from a table named "Persons"
where the "FirstName" is "Peter" and the "LastName" is "Jackson"?
Answer : SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson'
12. 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"?
Answer : SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen'
13. Which SQL statement is used to return only different values?
Answer : SELECT DISTINCT
14. Which SQL keyword is used to sort the result-set?
Answer : ORDER BY
15. With SQL, how can you return all the records from a table named "Persons"
sorted descending by "FirstName"?
Answer : SELECT * FROM Persons ORDER BY FirstName DESC
16. With SQL, how can you insert a new record into the "Persons" table?
Answer : INSERT INTO Persons VALUES ('Jimmy', 'Jackson')
17. With SQL, how can you insert "Olsen" as the "LastName" in the "Persons"
table?
Answer : INSERT INTO Persons (LastName) VALUES ('Olsen')
18. How can you change "Hansen" into "Nilsen" in the "LastName" column in the
Persons table?
Answer : UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen'
19. With SQL, how can you delete the records where the "FirstName" is "Peter" in
the Persons Table?
Answer : DELETE FROM Persons WHERE FirstName = 'Peter'
20. With SQL, how can you return the number of records in the "Persons" table?
Answer : SELECT COUNT(*) FROM Persons
________________________________________
photoshop
1.For photoshop is cs3 really that much better than cs2 on an Intel Mac?
On both the Photoshop CS works fine. But on Mac it seems to speed up faster. The
startup is much faster than on windows but relative to the velocity of the CS2,
it indeed is faster. So yes, photoshop cs3 is better at functioning on an intel
mac rater than cs2, due to the faster startup
________________________________________




Dreamweaver

1.   What action is possible in both Layout View and Standard View?
A.   inserting a layer on a page
B.   editing a table in Code View
C.   converting from tables to layers
D.   inserting a default Dreamweaver table from the Common Insert bar

Answer : B. editing a table in Code View

2. What is used to lock areas where attributes of elements CANNOT be changed
directly
on the page?
A. CSS
B. Templates
C. Framesets
D. Library items

Answer : B. Templates

3. What does the Dreamweaver MX Library store?
A. Reusable content that consists of text only.
B. Reusable content that consists of images only.
C. Reusable content that consists of either text, images or both.
D. Reusable template content that is used separately from the rest of the
template.

Answer : C. Reusable content that consists of either text, images or both.

4.   What CANNOT be controlled by <meta> tags? (Choose three)
A.   Keywords
B.   Encoding
C.   Base URL
D.   Base Target
E.   Script Language

Answer : C, D, E.

5. What events are attributes of a <body> tag and available for 4.0 or higher
version
browsers? (Choose two)
A. onBlur
B. onClick
C. onLoad
D. onKeyPress
E. onMouseDown

Answer : is A and C.
6. A new page is created from a template that contains Previous and Next
buttons.
Those buttons cannot be selected in this new page in order to add the proper
links.
What needs to be done?
A. Change the template and make the buttons editable regions.
B. Edit the Behavior associated with the Previous and Next buttons.
C. Click the Apply button in the Template category of the Assets panel.
D. Save the page in the Site directory or one of its subdirectories.

Answer : A. Change the template and make the buttons editable regions.

7. In the Exhibit, how is the image centered, using the Properties inspector,
without
centering the text?
A. Select the image and choose Align Center from the Modify menu.
B. Select the image and click the Align Center button in the Property inspector.
C. Click in the cell and choose Center from the Horz pop-up menu in the Property
inspector.
D. Select the image and then choose Middle from the Align pop-up menu in the
Property inspector.

Answer : B. Select the image and click the Align Center button in the Property
inspector.

8. What is done to create a link for selected text or an image? (Choose two)
A. Type the path name in the Link field of the Property inspector.
B. Drag the file from the Site window to the selected item on the page.
C. Drag the Point to File icon on the Property inspector to the file in the
Assets panel.
D. Drag the Point to File icon on the Property inspector to the file in the Site
window.
E. Use the Target select control next to the Link field in the Property
inspector to select
the file.

Answer : A and D.

9.   What target attribute will force a link to open a new browser window?
A.   _top
B.   new
C.   _blank
D.   _parent

Answer : C. _blank

10. What is the order of precedence (highest to lowest), when using all three
types of
Cascading Style Sheets (CSS) styles in a document?
A. embedded, inline, linked
B. inline, embedded, linked
C. linked, embedded, inline
D. linked, inline, embedded

Answer : B. inline, embedded, linked
11. In CSS, what is used as a prefix for class selectors?
A. (.)
B. (#)
C. ($)
D. (%)

Answer : A. (.)
12. What is a valid JavaScript variable assignment?
A. x = 5
B. x >= 5
C. x == y
D. x = John Doe

Answer : A. x = 5

13. What is another name for a collection of JavaScript statements that are
executed
only when called?
A. object
B. property
C. function
D. subroutine

Answer : C. function

14. What is the <noscript> tag used for?
A. Comment out JavaScript code for debugging purposes.
B. Indicate to a Browser to ignore any JavaScript in the page.
C. Indicate the end of JavaScript code for browsers that support JavaScript.
D. Provide alternative processing or informational comments for browsers that do
not
support JavaScript.

Contenu connexe

Similaire à Ans

Lt web quiz_answer
Lt web quiz_answerLt web quiz_answer
Lt web quiz_answer
0983676660
 
ABCs of Programming_eBook Contents
ABCs of Programming_eBook ContentsABCs of Programming_eBook Contents
ABCs of Programming_eBook Contents
Ashley Menhennett
 
Hello I a having an issue with the code written in this ass.pdf
Hello I a having an issue with the code written in this ass.pdfHello I a having an issue with the code written in this ass.pdf
Hello I a having an issue with the code written in this ass.pdf
absgroup9793
 
Top 100 PHP Interview Questions and Answers
Top 100 PHP Interview Questions and AnswersTop 100 PHP Interview Questions and Answers
Top 100 PHP Interview Questions and Answers
Vineet Kumar Saini
 
JavaScript Interview Questions with Answers
JavaScript Interview Questions with AnswersJavaScript Interview Questions with Answers
JavaScript Interview Questions with Answers
AK Deep Knowledge
 

Similaire à Ans (20)

Lt web quiz_answer
Lt web quiz_answerLt web quiz_answer
Lt web quiz_answer
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Php interview questions
Php interview questionsPhp interview questions
Php interview questions
 
Fnt Software Solutions Pvt Ltd Placement Papers - PHP Technology
Fnt Software Solutions Pvt Ltd Placement Papers - PHP TechnologyFnt Software Solutions Pvt Ltd Placement Papers - PHP Technology
Fnt Software Solutions Pvt Ltd Placement Papers - PHP Technology
 
Fiverr html5 test answers 2020
Fiverr html5 test answers 2020Fiverr html5 test answers 2020
Fiverr html5 test answers 2020
 
ABCs of Programming_eBook Contents
ABCs of Programming_eBook ContentsABCs of Programming_eBook Contents
ABCs of Programming_eBook Contents
 
13-IntroJavascript.pptx
13-IntroJavascript.pptx13-IntroJavascript.pptx
13-IntroJavascript.pptx
 
13-IntroJavascript.pptx
13-IntroJavascript.pptx13-IntroJavascript.pptx
13-IntroJavascript.pptx
 
13-IntroJavascript.pptx
13-IntroJavascript.pptx13-IntroJavascript.pptx
13-IntroJavascript.pptx
 
Fccwc326
Fccwc326Fccwc326
Fccwc326
 
Hello I a having an issue with the code written in this ass.pdf
Hello I a having an issue with the code written in this ass.pdfHello I a having an issue with the code written in this ass.pdf
Hello I a having an issue with the code written in this ass.pdf
 
Debugging - Figuring it out yourself (WordCamp Dublin 2019)
Debugging - Figuring it out yourself (WordCamp Dublin 2019)Debugging - Figuring it out yourself (WordCamp Dublin 2019)
Debugging - Figuring it out yourself (WordCamp Dublin 2019)
 
Web 2.0
Web 2.0Web 2.0
Web 2.0
 
SCWCD : Handling exceptions : CHAP : 5
SCWCD : Handling exceptions : CHAP : 5SCWCD : Handling exceptions : CHAP : 5
SCWCD : Handling exceptions : CHAP : 5
 
web dev diploma
web dev diplomaweb dev diploma
web dev diploma
 
Top 100 PHP Interview Questions and Answers
Top 100 PHP Interview Questions and AnswersTop 100 PHP Interview Questions and Answers
Top 100 PHP Interview Questions and Answers
 
Paper
PaperPaper
Paper
 
CSC PPT 12.pptx
CSC PPT 12.pptxCSC PPT 12.pptx
CSC PPT 12.pptx
 
JavaScript Interview Questions with Answers
JavaScript Interview Questions with AnswersJavaScript Interview Questions with Answers
JavaScript Interview Questions with Answers
 
RicoLiveGrid
RicoLiveGridRicoLiveGrid
RicoLiveGrid
 

Ans

  • 1. HTML 1. What does HTML stand for ? Answer : Hyper Text Markup Language 2. Who is making the Web standards ? Answer : The World Wide Web Consortium 3. Choose the correct HTML tag for the largest heading ? Answer : <h1> 4. What is the correct HTML tag for inserting a line break ? Answer : <br /> 5. What is the preferred way for adding a background color in HTML ? Answer : <body style="background-color:yellow"> 6. Choose the correct HTML tag to make a text bold ? Answer : <b> 7. Choose the correct HTML tag to make a text italic ? Answer : <i> 8. What is the correct HTML for creating a hyperlink ? Answer : <a href="http://www.w3schools.com/">W3Schools</a> 9. How can you create an e-mail link ? Answer : <a href="mailto:xxx@yyy"> 10. How can you open a link in a new browser window ? Answer : <a href="url" target="_blank"> 11. Which of these tags are all <table> tags ? Answer : <table><tr><td> 12. Choose the correct HTML to left-align the content inside a tablecell ? Answer : <td align="left"> 13. How can you make a list that lists the items with numbers ? Answer : <ol> 14. How can you make a list that lists the items with bullets ? Answer : <ul> 15. What is the correct HTML for making a checkbox ? Answer : <input type="checkbox" /> 16. What is the correct HTML for making a text input field ? Answer : <input type="text" /> 17. What is the correct HTML for making a drop-down list ? Answer : <select> 18. What is the correct HTML for making a text area ? Answer : <textarea> 19. What is the correct HTML for inserting an image ? Answer : <img src="image.gif" alt="MyImage" /> 20. What is the correct HTML for inserting a background image ? Answer : <body background="background.gif"> ________________________________________ CSS 1.What does CSS stand for? Answer : Cascading Style Sheets 2.What is the correct HTML for referring to an external style sheet? Answer : <link rel="stylesheet" type="text/css" href="mystyle.css"> 3.Where in an HTML document is the correct place to refer to an external style sheet? Answer : In the <head> section 4.Which HTML tag is used to define an internal style sheet? Answer : <style> 5.Which HTML attribute is used to define inline styles?
  • 2. Answer : style 6.Which is the correct CSS syntax? Answer : body {color: black} 7.How do you insert a comment in a CSS file? Answer : /* this is a comment */ 8.Which property is used to change the background color? Answer : background-color: 9.How do you add a background color for all <h1> elements? Answer : h1 {background-color:#FFFFFF} 10.How do you change the text color of an element? Answer : color: 11.Which CSS property controls the text size? Answer : font-size 12.What is the correct CSS syntax for making all the <p> elements bold? Answer : p {font-weight:bold} 13.How do you display hyperlinks without an underline? Answer : a {text-decoration:none} 14.How do you make each word in a text start with a capital letter? Answer : text-transform:capitalize 15.How do you change the font of an element? Answer : font-family: 16.How do you make the text bold? Answer : font-weight:bold 17.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? Answer : border-width:10px 1px 5px 20px 18.How do you change the left margin of an element? Answer : margin-left: 19.To define the space between the element's border and content, you use the padding property, but are you allowed to use negative values? Answer : no 20.How do you make a list that lists its items with squares?
  • 3. Answer : list-style-type: square ________________________________________ JavaScript 1. Inside which HTML element do we put the JavaScript? Answer : < script > 2. What is the correct JavaScript syntax to write "Hello World"? Answer : ("Hello World") 3. Where is the correct place to insert a JavaScript? Answer : Both the <head> section and the <body> section are correct 4. What is the correct syntax for referring to an external script called "xxx.js"? Answer : < script type="text/javascript" src="xxx.js"> 5. The external JavaScript file must contain the <script> tag Answer : False 6. How do you write "Hello World" in an alert box? Answer : alert("Hello World") 7. How do you create a function? Answer : function myFunction() 8. How do you call a function named "myFunction"? Answer : myFunction() 9. How do you write a conditional statement for executing some code if "i" is equal to 5? Answer : if (i==5) 10. How do you write a conditional statement for executing some code if "i" is NOT equal to 5? Answer : if (i != 5) 11. How does a "while" loop start? Answer : while (i<=10) 12. How does a "for" loop start? Answer : for (i = 0; i <= 5; i++) 13. How can you add a comment in a JavaScript? Answer : //This is a comment 14. What is the correct JavaScript syntax to insert a comment that has more than one line? Answer : /*This comment has more than one line*/ 15. What is the correct way to write a JavaScript array? Answer : var txt = new Array("tim","kim","jim") 16. How do you round the number 7.25, to the nearest integer? Answer : Math.round(7.25) 17. How do you find the number with the highest value of x and y? Answer : Math.max(x,y) 18. What is the correct JavaScript syntax for opening a new window called "w2" ? Answer : w2=window.open("http://www.w3schools.com/"); 19. How do you put a message in the browser's status bar? Answer : window.status = "put your message here" 20. How can you find a client's browser name? Answer : navigator.appName ________________________________________ JQuery 1. Which of the following is correct? Answer : jQuery is a JavaScript Library 2. jQuery uses CSS selectors and XPath expressions to select elements? Answer : True 3. Which sign does jQuery use as a shortcut for jQuery? Answer : the $ sign 4. With jQuery, look at the following selector: $("div"). What does it select? Answer : All div elements 5. Is jQuery a library for client scripting or server scripting? Answer : Client scripting 6. Is it possible to use jQuery together with AJAX? Answer : Yes 7. The jQuery html() method works for both HTML and XML documents
  • 4. Answer : False 8. What is the correct jQuery code to set the background color of all p elements to red? Answer : $("p").css("background-color","red"); 9. With jQuery, look at the following selector: $("div.intro"). What does it select? Answer : All div elements with class="intro" 10. Which jQuery method is used to hide selected elements? Answer : hide() 11. Which jQuery method is used to set one or more style properties for selected elements? Answer : css() 12. Which jQuery method is used to perform an asynchronous HTTP request? Answer : jQuery.ajax() 13. What is the correct jQuery code for making all div elements 100 pixels high? Answer : $("div").height(100) 14. Which statement is true? Answer : To use jQuery, you can refer to a hosted jQuery library at Google 15. What scripting language is jQuery written in? Answer : JavaScript 16. Which jQuery function is used to prevent code from running, before the document is finished loading? Answer : $(document).ready() 17. Which jQuery method should be used to deal with name conflicts? Answer : noConflict() 18. Which jQuery method is used to switch between adding/removing one or more classes (for CSS) from selected elements? Answer : toggleClass() 19. Look at the following jQuery selector: $("div#intro .head"). What does it select? Answer : All elements with class="head" inside the first div element with id="intro" 20. Is jQuery a W3C standard? Answer : no ________________________________________ PHP 1. What does PHP stand for? Answer : PHP: Hypertext Preprocessor 2. PHP server scripts are surrounded by delimiters, which? Answer : <?php…?> 3. How do you write "Hello World" in PHP Answer : echo "Hello World"; 4. All variables in PHP start with which symbol? Answer : $ 5. What is the correct way to end a PHP statement? Answer : ; 6. The PHP syntax is most similar to: Answer : Perl and C 7. How do you get information from a form that is submitted using the "get" method? Answer : $_GET[]; 8. When using the POST method, variables are displayed in the URL: Answer : False 9. In PHP you can use both single quotes ( ' ' ) and double quotes ( " " ) for strings: Answer : True 10. Include files must have the file extension ".inc" Answer : false 11. What is the correct way to include the file "time.inc" ? Answer : <?php require("time.inc"); ?> 12. What is the correct way to create a function in PHP? Answer : function myFunction() 13. What is the correct way to open the file "time.txt" as readable? Answer : fopen("time.txt","r");
  • 5. 14. PHP allows you to send emails directly from a script Answer : True 15. What is the correct way to connect to a MySQL database? Answer : mysql_connect("localhost"); 16. What is the correct way to add 1 to the $count variable? Answer : $count++; 17. What is a correct way to add a comment in PHP? Answer : /*…*/ 18. PHP can be run on Microsoft Windows IIS(Internet Information Server): Answer : True 19. In PHP, the die() and exit() functions do the exact same thing. Answer : true 20. Which one of these variables has an illegal name? Answer : $my-Var ________________________________________ SQL 1.What does SQL stand for? Answer : Structured Query Language 2. Which SQL statement is used to extract data from a database? Answer : SELECT 3. Which SQL statement is used to update data in a database? Answer : UPDATE 4. Which SQL statement is used to delete data from a database? Answer : DELETE 5. Which SQL statement is used to insert new data in a database? Answer : INSERT INTO 6. With SQL, how do you select a column named "FirstName" from a table named "Persons"? Answer : SELECT FirstName FROM Persons 7. With SQL, how do you select all the columns from a table named "Persons"? Answer : SELECT * FROM Persons 8. With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" is "Peter"? Answer : SELECT * FROM Persons WHERE FirstName='Peter' 9. 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"? Answer : SELECT * FROM Persons WHERE FirstName LIKE 'a%' 10. The 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 ? Answer : True 11. With SQL, how do you select all the records from a table named "Persons" where the "FirstName" is "Peter" and the "LastName" is "Jackson"? Answer : SELECT * FROM Persons WHERE FirstName='Peter' AND LastName='Jackson' 12. 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"? Answer : SELECT * FROM Persons WHERE LastName BETWEEN 'Hansen' AND 'Pettersen' 13. Which SQL statement is used to return only different values? Answer : SELECT DISTINCT 14. Which SQL keyword is used to sort the result-set? Answer : ORDER BY 15. With SQL, how can you return all the records from a table named "Persons" sorted descending by "FirstName"? Answer : SELECT * FROM Persons ORDER BY FirstName DESC 16. With SQL, how can you insert a new record into the "Persons" table? Answer : INSERT INTO Persons VALUES ('Jimmy', 'Jackson') 17. With SQL, how can you insert "Olsen" as the "LastName" in the "Persons" table? Answer : INSERT INTO Persons (LastName) VALUES ('Olsen') 18. How can you change "Hansen" into "Nilsen" in the "LastName" column in the Persons table? Answer : UPDATE Persons SET LastName='Nilsen' WHERE LastName='Hansen' 19. With SQL, how can you delete the records where the "FirstName" is "Peter" in
  • 6. the Persons Table? Answer : DELETE FROM Persons WHERE FirstName = 'Peter' 20. With SQL, how can you return the number of records in the "Persons" table? Answer : SELECT COUNT(*) FROM Persons ________________________________________ photoshop 1.For photoshop is cs3 really that much better than cs2 on an Intel Mac? On both the Photoshop CS works fine. But on Mac it seems to speed up faster. The startup is much faster than on windows but relative to the velocity of the CS2, it indeed is faster. So yes, photoshop cs3 is better at functioning on an intel mac rater than cs2, due to the faster startup ________________________________________ Dreamweaver 1. What action is possible in both Layout View and Standard View? A. inserting a layer on a page B. editing a table in Code View C. converting from tables to layers D. inserting a default Dreamweaver table from the Common Insert bar Answer : B. editing a table in Code View 2. What is used to lock areas where attributes of elements CANNOT be changed directly on the page? A. CSS B. Templates C. Framesets D. Library items Answer : B. Templates 3. What does the Dreamweaver MX Library store? A. Reusable content that consists of text only. B. Reusable content that consists of images only. C. Reusable content that consists of either text, images or both. D. Reusable template content that is used separately from the rest of the template. Answer : C. Reusable content that consists of either text, images or both. 4. What CANNOT be controlled by <meta> tags? (Choose three) A. Keywords B. Encoding C. Base URL D. Base Target E. Script Language Answer : C, D, E. 5. What events are attributes of a <body> tag and available for 4.0 or higher version browsers? (Choose two) A. onBlur B. onClick C. onLoad D. onKeyPress E. onMouseDown Answer : is A and C.
  • 7. 6. A new page is created from a template that contains Previous and Next buttons. Those buttons cannot be selected in this new page in order to add the proper links. What needs to be done? A. Change the template and make the buttons editable regions. B. Edit the Behavior associated with the Previous and Next buttons. C. Click the Apply button in the Template category of the Assets panel. D. Save the page in the Site directory or one of its subdirectories. Answer : A. Change the template and make the buttons editable regions. 7. In the Exhibit, how is the image centered, using the Properties inspector, without centering the text? A. Select the image and choose Align Center from the Modify menu. B. Select the image and click the Align Center button in the Property inspector. C. Click in the cell and choose Center from the Horz pop-up menu in the Property inspector. D. Select the image and then choose Middle from the Align pop-up menu in the Property inspector. Answer : B. Select the image and click the Align Center button in the Property inspector. 8. What is done to create a link for selected text or an image? (Choose two) A. Type the path name in the Link field of the Property inspector. B. Drag the file from the Site window to the selected item on the page. C. Drag the Point to File icon on the Property inspector to the file in the Assets panel. D. Drag the Point to File icon on the Property inspector to the file in the Site window. E. Use the Target select control next to the Link field in the Property inspector to select the file. Answer : A and D. 9. What target attribute will force a link to open a new browser window? A. _top B. new C. _blank D. _parent Answer : C. _blank 10. What is the order of precedence (highest to lowest), when using all three types of Cascading Style Sheets (CSS) styles in a document? A. embedded, inline, linked B. inline, embedded, linked C. linked, embedded, inline D. linked, inline, embedded Answer : B. inline, embedded, linked
  • 8. 11. In CSS, what is used as a prefix for class selectors? A. (.) B. (#) C. ($) D. (%) Answer : A. (.) 12. What is a valid JavaScript variable assignment? A. x = 5 B. x >= 5 C. x == y D. x = John Doe Answer : A. x = 5 13. What is another name for a collection of JavaScript statements that are executed only when called? A. object B. property C. function D. subroutine Answer : C. function 14. What is the <noscript> tag used for? A. Comment out JavaScript code for debugging purposes. B. Indicate to a Browser to ignore any JavaScript in the page. C. Indicate the end of JavaScript code for browsers that support JavaScript. D. Provide alternative processing or informational comments for browsers that do not support JavaScript.