Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
HTML1. What does HTML stand for ?Answer : Hyper Text Markup Language2. Who is making the Web standards ?Answer : The World...
Answer : style6.Which is the correct CSS syntax?Answer : body {color: black}7.How do you insert a comment in a CSS file?An...
Answer : list-style-type: square________________________________________JavaScript1. Inside which HTML element do we put t...
Answer : False8. What is the correct jQuery code to set the background color of all p elementsto red?Answer : $("p").css("...
14. PHP allows you to send emails directly from a scriptAnswer : True15. What is the correct way to connect to a MySQL dat...
the Persons Table?Answer : DELETE FROM Persons WHERE FirstName = Peter20. With SQL, how can you return the number of recor...
6. A new page is created from a template that contains Previous and Nextbuttons.Those buttons cannot be selected in this n...
11. In CSS, what is used as a prefix for class selectors?A. (.)B. (#)C. ($)D. (%)Answer : A. (.)12. What is a valid JavaSc...
Upcoming SlideShare
Loading in …5
×

Ans

3,686 views

Published on

  • Be the first to comment

Ans

  1. 1. HTML1. What does HTML stand for ?Answer : Hyper Text Markup Language2. Who is making the Web standards ?Answer : The World Wide Web Consortium3. 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">________________________________________CSS1.What does CSS stand for?Answer : Cascading Style Sheets2.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 stylesheet?Answer : In the <head> section4.Which HTML tag is used to define an internal style sheet?Answer : <style>5.Which HTML attribute is used to define inline styles?
  2. 2. Answer : style6.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-size12.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:capitalize15.How do you change the font of an element?Answer : font-family:16.How do you make the text bold?Answer : font-weight:bold17.How do you display a border like this:The top border = 10 pixelsThe bottom border = 5 pixelsThe left border = 20 pixelsThe right border = 1pixel?Answer : border-width:10px 1px 5px 20px18.How do you change the left margin of an element?Answer : margin-left:19.To define the space between the elements border and content, you use thepadding property, but are you allowed to use negative values?Answer : no20.How do you make a list that lists its items with squares?
  3. 3. Answer : list-style-type: square________________________________________JavaScript1. 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 correct4. 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> tagAnswer : False6. 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" isequal to 5?Answer : if (i==5)10. How do you write a conditional statement for executing some code if "i" isNOT 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 comment14. What is the correct JavaScript syntax to insert a comment that has more thanone line?Answer : /*This comment hasmore 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 browsers status bar?Answer : window.status = "put your message here"20. How can you find a clients browser name?Answer : navigator.appName________________________________________JQuery1. Which of the following is correct?Answer : jQuery is a JavaScript Library2. jQuery uses CSS selectors and XPath expressions to select elements?Answer : True3. Which sign does jQuery use as a shortcut for jQuery?Answer : the $ sign4. With jQuery, look at the following selector: $("div"). What does it select?Answer : All div elements5. Is jQuery a library for client scripting or server scripting?Answer : Client scripting6. Is it possible to use jQuery together with AJAX?Answer : Yes7. The jQuery html() method works for both HTML and XML documents
  4. 4. Answer : False8. What is the correct jQuery code to set the background color of all p elementsto red?Answer : $("p").css("background-color","red");9. With jQuery, look at the following selector: $("div.intro"). What does itselect?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 selectedelements?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 Google15. What scripting language is jQuery written in?Answer : JavaScript16. Which jQuery function is used to prevent code from running, before thedocument 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 moreclasses (for CSS) from selected elements?Answer : toggleClass()19. Look at the following jQuery selector: $("div#intro .head"). What does itselect?Answer : All elements with class="head" inside the first div element withid="intro"20. Is jQuery a W3C standard?Answer : no________________________________________PHP1. What does PHP stand for?Answer : PHP: Hypertext Preprocessor2. PHP server scripts are surrounded by delimiters, which?Answer : <?php…?>3. How do you write "Hello World" in PHPAnswer : 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 C7. 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 : False9. In PHP you can use both single quotes ( ) and double quotes ( " " ) forstrings:Answer : True10. Include files must have the file extension ".inc"Answer : false11. 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. 5. 14. PHP allows you to send emails directly from a scriptAnswer : True15. 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 : True19. In PHP, the die() and exit() functions do the exact same thing.Answer : true20. Which one of these variables has an illegal name?Answer : $my-Var________________________________________SQL1.What does SQL stand for?Answer : Structured Query Language2. Which SQL statement is used to extract data from a database?Answer : SELECT3. Which SQL statement is used to update data in a database?Answer : UPDATE4. Which SQL statement is used to delete data from a database?Answer : DELETE5. Which SQL statement is used to insert new data in a database?Answer : INSERT INTO6. With SQL, how do you select a column named "FirstName" from a table named"Persons"?Answer : SELECT FirstName FROM Persons7. With SQL, how do you select all the columns from a table named "Persons"?Answer : SELECT * FROM Persons8. 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=Peter9. 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 ANDoperator displays a record if ALL of the conditions listed are true ?Answer : True11. 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=Jackson12. 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 Pettersen13. Which SQL statement is used to return only different values?Answer : SELECT DISTINCT14. Which SQL keyword is used to sort the result-set?Answer : ORDER BY15. 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 DESC16. 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 thePersons table?Answer : UPDATE Persons SET LastName=Nilsen WHERE LastName=Hansen19. With SQL, how can you delete the records where the "FirstName" is "Peter" in
  6. 6. the Persons Table?Answer : DELETE FROM Persons WHERE FirstName = Peter20. With SQL, how can you return the number of records in the "Persons" table?Answer : SELECT COUNT(*) FROM Persons________________________________________photoshop1.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. Thestartup 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 intelmac rater than cs2, due to the faster startup________________________________________Dreamweaver1. What action is possible in both Layout View and Standard View?A. inserting a layer on a pageB. editing a table in Code ViewC. converting from tables to layersD. inserting a default Dreamweaver table from the Common Insert barAnswer : B. editing a table in Code View2. What is used to lock areas where attributes of elements CANNOT be changeddirectlyon the page?A. CSSB. TemplatesC. FramesetsD. Library itemsAnswer : B. Templates3. 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 thetemplate.Answer : C. Reusable content that consists of either text, images or both.4. What CANNOT be controlled by <meta> tags? (Choose three)A. KeywordsB. EncodingC. Base URLD. Base TargetE. Script LanguageAnswer : C, D, E.5. What events are attributes of a <body> tag and available for 4.0 or higherversionbrowsers? (Choose two)A. onBlurB. onClickC. onLoadD. onKeyPressE. onMouseDownAnswer : is A and C.
  7. 7. 6. A new page is created from a template that contains Previous and Nextbuttons.Those buttons cannot be selected in this new page in order to add the properlinks.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,withoutcentering 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 Propertyinspector.D. Select the image and then choose Middle from the Align pop-up menu in theProperty inspector.Answer : B. Select the image and click the Align Center button in the Propertyinspector.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 theAssets panel.D. Drag the Point to File icon on the Property inspector to the file in the Sitewindow.E. Use the Target select control next to the Link field in the Propertyinspector to selectthe file.Answer : A and D.9. What target attribute will force a link to open a new browser window?A. _topB. newC. _blankD. _parentAnswer : C. _blank10. What is the order of precedence (highest to lowest), when using all threetypes ofCascading Style Sheets (CSS) styles in a document?A. embedded, inline, linkedB. inline, embedded, linkedC. linked, embedded, inlineD. linked, inline, embeddedAnswer : B. inline, embedded, linked
  8. 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 = 5B. x >= 5C. x == yD. x = John DoeAnswer : A. x = 513. What is another name for a collection of JavaScript statements that areexecutedonly when called?A. objectB. propertyC. functionD. subroutineAnswer : C. function14. 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 donotsupport JavaScript.

×