0% found this document useful (0 votes)
48 views15 pages

Ch2 Coputer

Op notes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
48 views15 pages

Ch2 Coputer

Op notes
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 15
Std-12 Computer Studies * 2. Cascading Style Sheets and JavaScript « © Sona Prakashan Textual Exercise : MCQs Choose the most appropriate option from those given below : Which of the following allows specifying styles for the visual elements of the website ? (A) Cascading Style Sheets (B) Webpage (©) Form (D) Animation Which of the following is known as special symbol in the syntax of CSS ? (A) Rules (B) Selector (©) Declaration (D) Input Which of the following are two main parts of CSS tule ? (A) Selector, declaration (B) Select, declaration (C) Selector, declare (D) Selection, declaration Which of the following is an HTML element on which style can be applied ? (A) declaration (B) selector (C) select (D) declare Which of the following is the syntax of CSS ? [M-15], [N-15] (A) select {property : value} (B) selector {value : property} (© selector {property : value} (D) selection {property : value} Which of the following has developed JavaScript ? (A) Yahoo (B) Google (© Wikipedia (D) Netscape Which of the following is a scripting language that allows adding programming to web pages ? (A) Action script (B) JavaScript (© HTML (D) Css Which of the following is a scripting language that is simple, lightweight Programming language that does not contain advanced programming functionalities 2 (A) JavaScript (B) HTML oc (D) Java Which of the following tag is used to insert JavaScript code into a HTML page ? (A) [N-15], [M-16] (© ... Which of the following symbol signifies the start and end of a JavaScript block? (A) semicolon (B) square bracket (C) curly bracket (D) round bracket [ANS> 4 [36] lL. 12. 13. 14, 15. 16. 17. 18. Std.-12 : Computer Studies * 2. Cascading Style Sheets and JavaScript + © Sona Prakashan Which of the following is a reusable block of code that performs a particular task? [0-14] (A) Array (B) Code (C) Program (D) Function Which of the following statement is used to return a value in a function ? [0-14] (A) return (B) function (C) select (D) send Which of the following is generated by the browser due to interaction between the user and the webpage ? (A) Function (B) Response (©) Event (D) Value Which of the following is not an event ? (A) Abort (B) Mouseover (C) Set (D) Load Which of the following is a container for storing data ? [0-16] (A) Variable (B) Integer (© Event () Event handler Which of the following stands for BOM ? (M-15] (A) Browser Of Model (B) Browser Object Model (©) Browser Object Modelling (D) Browser Object Model Which of the following is the top level object in the browser object model ? (A) Window (B) Document (C) Page (D) Location Which of the following stands for NaN ? (A) Not a Numeric (B) Not a Number (C) Not a Noun (D) Not a Numeric [ANS.> 44, (D) 425 (A) 38, (C) 24. (C) 45+ (A) 26: (8) 27 (A) 28 (8) 137] Std.-12 : Computer Studies * 2. Cascading Style Sheets and JavaScript + © Sona Prakashan | Exam Oriented MCQs 2.1 INTRODUCTION Choose the most appropriate option from those given below : 1. What is the full form of CSS ? IM-17] (A) Case Study Sheet (B) Computer Style Sheet (© Cascading Style Sheet (D) Computerized Spread Sheet 2. Which of the following option helps us to keep the information content of a document separate from the details of how to display it ? (A) HTML (B) HTTP (©) Java script (D) CSS 3. What is style ? (A) The detail of how to display the document (B) The detail of how to write the document (©) Cascading pattern of HTML document (D) Cascading pattern of Java script document 4. Which of the following will specify the appearance of particular page elements on the screen ? (A) HTML (B) Styles (C) Images (D) Graphs 5. By using which option, we can set all element types to appear in a style as per our choice ? [M-16] (A) Java script (B) Css (C) Web browser (D) Web server 6. Which of the following describes the information content of the document ? (A) CSS. (B) Web Server (© HTML (D) Java script 7. Which option describes the style of the elements in the document and not its contents ? (A) CSS (B) Web browser — (C) HTML (D) Both A & C 8. Which of the following option/s of our web site is/are controlled by CSS ? [0-14] (A) Font types (B) Font and element colors (M-18] (©) Margins (D) AIA, B&C 9. Pad spaces and element position of our website are controlled by which option? (A) HTML (B) CSS [M-18] (©) Java script (D) Web Browser 10. In which of the following aspects, keeping the style separate from the content will be helpful ? (A) Avoid duplication in coding (B) Use the same content with different styles for different purpose © Easy maintenance of code (©) AA, BaC [38] Std.-12 : Computer Studies * 2. Cascading Style Sheets and JavaScript + © Sona Prakashan 2.2 SYNTAX OF CSS 11. In how many parts CSS rules are mainly divided ? {O-14, M-17, 18] (A) Four (B) Six (C) Two (D) Three 12, Name the special symbols consisted by syntax of CSS. (A) Rules (B) Styles (©) HTML (D) HTTP 13, Which are the main parts of CSS rule ? (A) A Selector and one or more preferences (B) A Property and one or more values (© A Selector and one or more declarations (D) None of these 14. Which of the following consists of a property associated with the HTML element used in selector and its corresponding value ? (A) HTML (B) Declaration (© Edit menu (D)

tag 15. Styles can be applied on which of the following HTML element? [M-17, 18] (A) Declaration —_(B) Property (© Value (D) Selector 16. In the example of CSS, {O-14, M-16, 0-16] HI { color : green }; Which is selector ? (A) HL (B) Color (© Green ©) o 17. In “H1 { color : green }", what is color ? (A) Property (B) Value (©) Selector (D) Style 18. In CSS, property and value are separated by which symbol ? [0-16] (A) Comma (B) Colon (C) Space (D) Semicolon 19. Which option is used to make sure that KompoZer uses CSS by default ? (A) File > Preferences (B) Insert > Preferences (©) Tools > Preferences (D) Edit + Preferences 20. Which category should be selected in “Options” dialogbox ? (A) Text (B) General (C) Background (D) Box 21. How many options are available on left side pane of the ‘options’ dialog box? (A) Four (B) Five (C) Three (D) Six 22. Which of the following options are available in left side pane of the ‘options’ dialog box? (A) General, Fonts (B) New Page Settings’ (©) Advanced, Applications () AA, B&C 23. In Options dialog box, which checkbox should be selected in General category ? (A) Use HTML elements and attributes (B) Use CSS syntax (©) Use CSS styles instead of HTML elements and attributes (D) Use CSS preferences (ms> Raza aD (39) 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 35. 36. 37. 38. 39. [ans Std.-12 : Computer Studies * 2. Cascading Style Sheets and JavaScript * © Sona Prakashan Which button should be selected in the composition toolbar to apply CSS styles? (A) Cascade (B) CSS (C) HTML elements (D) Style [M-18] Which dialog box will be opened, if the file is not saved ? (A) Page title (B) Style sheet (C) Borders (D) Lists By using which option, we can choose an element to create the style rule ? (A) Radio button (B) Check box (C) Lists (D) Drop down menu Which dialog box is used to define the styles for each element? (A) Options (B) Block background color (© CSS stylesheets (D) Background Under which heading a style rule will appear, whenever we add new element, in CSS Style sheets dialogbox ? [M-18] (A) General (B) Internal stylesheet (©) Aural (D) Background Which of the following tab is not available in the right side of the CSS Stylesheets dialog box ? [0-16] (A) Aural (B) Borders (C) New style (D) Text OR (A) Borders (B) General (©) Orals (D) Lists How many tabs.are available in right side window of ‘CSS stylesheets’ dialog box ? [0-16] (A) 7 B®) 8 (9 (D) 10 Which of the following option is not available in ‘Text’ tab of ‘CSS stylesheets’ dialog box? [N-15] (A) Blinking (B) Line height (©) Image (D) Font family Which radio button should be selected to choose ‘Times New Roman’ fonts? (A) Predefined (B) Unspecified (C) Font Style (D) Line height Which button should be clicked to open ‘Block Background Color’ dialog box? (A) Background color (B) Predefined colors (©) Color (D) Color palette What should be clicked to keep an image in the background? (A) Opacity (B) General (©) Choose file (D) Lists Which option is not available in ‘Borders’ tab of ‘CSS stylesheets’ dialog box? (A) Style (B) Selector (C) Preview (D) Width In which section we can select fonts of our choice ? (A) Font family (B) Font weight (©) Font style (D) Case Which button should be clicked in Image option, to keep an image in the background? IN-15] (A) Select image (B) Choose file (© Choose image (D) Select alternate text Which checkbox should be selected to apply the same border on all four sides ? (A) Apply to all sides (B) Apply to all four sides (C) Select all sides (D) All four sides use same border style For borders, which options are available ? (A) Style, Width, Size (B) General, Box, Border (© Style, Width, Color (D) General, Length, Size [40] Std.-12 : Computer Studies + 2. Cascading Style Sheets and JavaScript » © Sona Prakashan 40. Which tab will show the CSS code ? [N-15, 0-16, M-18] (A) CSS (B) General (©) Text (D) HTML 41. Which bottom tab should be selected to view the CSS style sheet code ? (A) Design (B) Source (©) Split (D) Both A & B 2.3 ADVANTAGES OF CSS 42, Which of the following allows us to set the format of the website without changing the underlying structure ? (A) HTML (B) JavaScript (© Forms () Css 43. Which of the following can make website designing quick and efficient ? (a) css (B) HTML (© Forms (D) JavaScript 44. Which of the following has less code compared to that in HTML ? (A) JavaScript (B) Css (© Forms (D) Web browser 2.4 DISADVANTAGES OF CSS 45. Which program does not support some of the style features ? (A) Panel (B) Status bar (©) Browser (D) Editor 46. Which of the following varies with different browsers? {N-15] (A) Scripting language (B) Borders (© HTML (D) CSS compatibility 2.5 JAVASCRIPT ‘47. What was the use of HTML originally ? (A) To do programming (B) To display images (© To design server (D) To control the appearance of web pages 48. Which kind of web pages can be created using HTML? —[M-15, 0-16, M-17] (A) Dynamic (B) Static (© Simple without formatting (D) ALA, B& C 49. Which scripting language allows us to add programming aspects to our web pages? (A) VB Script (B) CH (© JavaScript (D) Java 50. Which are the features of scripting language ? (A) It is simple (B) Light weight programming language (© It doesn't contain the advanced programming functionalities like C and Java (D) All A, B&C 51, Which is used to improve the design in web pages and validate the Forms ? [N-15, M-17] (A) JavaScript (B) HTML (C) CSS (D) HTML Forms 52. Which can add interactivity to HIML pages ? (a) CSS (B) JavaScript (© HIML (D) Frames rr [41] 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. Std.-12 : Computer Studies * 2. Cascading Style Sheets and JavaScript * © Sona Prakashan Which of the following can be inserted directly into the HTML code ? (A) CSS (B) VB Script (©) JavaScript (D) HTML Which of the following is used to create HTML content dynamically ? (A) Web server (B) JavaScript (©) Css (D) Web Browser ‘What will restrict users from making mistakes ? (A) Web Browser (B) Validation (©) HTML Forms (D) Css Which is the most common form of JavaScript today ? (A) Client side script (B) Server side script (© BothA &B (D) VB Script . Which of the following is used to validate the data entered in the HTML forms on the client side before sending it to the server ? (a) Css (B) HTML Forms — (©) JavaScript (D) Web Browser Which of the following is case sensitive language ? (a) Css (8) HTML (©) Web Browser (D) JavaScript Generally, within which tag the JavaScript code should be preferred to be placed? (A) (B) ©