Vous êtes sur la page 1sur 7

CSS

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
19.To define the space between the element's border and content, you use the pad
ding property, but are you allowed to use negative values?
Answer : no
________________________________________
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 eq
ual to 5?
Answer : if (i==5)
10. How do you write a conditional statement for executing some code if "i" is N
OT 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 sel
ect?
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 docum
ent 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 cl
asses (for CSS) from selected elements?
Answer : toggleClass()
19. Look at the following jQuery selector: $("div#intro .head"). What does it se
lect?
Answer : All elements with class="head" inside the first div element with id="in
tro"
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" meth
od?
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 s
trings:
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 "Pe
rsons"?
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" wher
e 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" wher
e 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" whe
re 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" whe
re the "LastName" is alphabetically between (and including) "Hansen" and "Petter
sen"?
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" so
rted 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" tabl
e?
Answer : INSERT INTO Persons (LastName) VALUES ('Olsen')
18. How can you change "Hansen" into "Nilsen" in the "LastName" column in the Pe
rsons 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 dir
ectly
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 templa
te.
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 ve
rsion
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 lin
ks.
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, wi
thout
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 i
nspector.
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 Asse
ts 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 inspecto
r 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 ty
pes 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 exec
uted
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.

Vous aimerez peut-être aussi