0% found this document useful (0 votes)
40 views11 pages

2025 02 05 20 41 Solution

The document contains a series of multiple-choice questions (MCQs) related to Cascading Style Sheets (CSS) and JavaScript for a computer studies curriculum. Each question is followed by the correct answer, covering topics such as CSS syntax, JavaScript functions, browser interactions, and form validation. The total marks for the section are 79, indicating its significance in the assessment.

Uploaded by

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

2025 02 05 20 41 Solution

The document contains a series of multiple-choice questions (MCQs) related to Cascading Style Sheets (CSS) and JavaScript for a computer studies curriculum. Each question is followed by the correct answer, covering topics such as CSS syntax, JavaScript functions, browser interactions, and form validation. The total marks for the section are 79, indicating its significance in the assessment.

Uploaded by

Ayushy Mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

CHAPTER - 2 CASCADING STYLE SHEETS AND

JAVASCRIPT
STD 12 - COMPUTER Total Marks : 79
MCQs... {PART-2}

Section A

* Choose The Right Answer From The Given Options: [79]

1. Which of the following is the syntax of CSS ?


(A) select {property : value} (B) selector {value : property}
(C) selector {property : value} (D) selection {property : value}
Ans. : selector {property : value}
2. Which of the following symbol signifies the start and end of a JavaScript
block ?
(A) Semicolon (B) Square (C) Curly bracket (D) Round bracket
bracket
Ans. : Curly bracket
3. Which of the following statements is used to return a value in a function
?
(A) Return (B) Function (C) Select (D) Send
Ans. : Return
4. Which of the following is generated by the browser due to interaction
between the user and the webpage ?
(A) Function (B) Response (C) Event (D) Value
Ans. : Event
5. Which of the following is not an event ?
(A) Abort (B) Mouseover (C) Set (D) Load
Ans. : Set
6. Which of the following stands for BOM ?
(A) Browser Of Model (B) Browser Object Model
(C) Browser Object Modeling (D) Browse Object Model
Ans. : Browser Object Model
7. Which of the following is the top level object in the browser object
model ?

Page 1
(A) Window (B) Document (C) Page (D) Location
Ans. : Window
8. Which of the following stands for NaN ?
(A) Not a (B) Not a (C) Not a Noun (D) Not an
Numeric Number Numeric
Ans. : Not a Number
9. Which of the following is known as special symbol in the syntax of CSS ?
(A) Rules (B) Selector (C) Declaration (D) Input
Ans. : Rules
10. Which of the following is known as special symbol in the syntax of CSS?
(A) Rules (B) Selector (C) Declaration (D) Input
Ans. : Rules
11. Which of the following is the syntax of css?
(A) select {property: value} (B) selector {value: property}
(C) selector {property: value} (D) selection {property: value}
Ans. : selector {property: value}
12. Which of the following symbol signifies the start and end of a JavaScript
block?
(A) semicolon (B) square (C) curly bracket (D) round bracket
bracket
Ans. : curly bracket
13. Which of the following statement is used to return a value in a function?
(A) return (B) function (C) select (D) send
Ans. : return
14. Which of the following is generated by the browser due to interaction
between the user and the Webpage?
(A) Function (B) Response (C) Event (D) Value
Ans. : Event
15. Which of the following is not an event?
(A) Abort (B) Mouse over (C) Set (D) Load
Ans. : Set
16. Which of the following stands for BOM

Page 2
(A) Browser Object Model (B) Browser of Model
(C) Browser Object Modelling (D) Browse Object Model
Ans. : Browser Object Model
17. Which of the following is the top level object in the Browser Object
Model?
(A) Window (B) Document (C) Page (D) Location
Ans. : Window
18. Which of the following stands for Naan?
(A) Not a Numeric (B) Not a Number (C) Not a Noun (D) Not a
Numeric
Ans. : Not a Number
19. Which of the following is used to set all element types to appear in a
style as per our choice?
(A) Java (B) CSS (C) JavaScript (D) C
Ans. : CSS
20. Which of the following is used to describe the information content of the
document and not the style?
(A) HTML (B) CSS (C) JavaScript (D) Java
Ans. : HTML
21. Which of the following is HTML element on which we want to apply the
style?
(A) Declarations (B) Selector (C) Variable (D) Function
Ans. : Selector
22. Which of the following section consists of a property associated with the
HTML element used in selector and its corresponding value.?
(A) Declarations (B) Selector (C) Variable (D) Function
Ans. : Declarations
23. Which option is selected to use the CSS styling instead of HTML to
format the text?
(A) Edit → (B) File (C) Edit→ Style (D) Edit → CSS
Preferences → Preferences

Ans. : Edit → Preferences

Page 3
24. Which option is selected from General category after clicking Edit —*
Preferences to make sure that KompoZer uses CSS by default?
(A) Use CSS style instead of HTML elements and attributes.
(B) Use cascading style sheet
(C) Don’t use HTML elements
(D) Use CSS Style
Ans. : Use CSS style instead of HTML elements and attributes.
25. Which of the following toolbar contains Cascade button in KompoZer?
(A) Format Toolbar 1 (B) Format Toolbar2
(C) Composition Toolbar (D) Edit Mode Toolbar
Ans. : Composition Toolbar
26. Which titled dialogue box of CSS Stylesheets appear for each element for
which we add a style rule?
(A) Internal (B) Stylesheet (C) Selector (D) Style set
Stylesheet
Ans. : Internal Stylesheet
27. Which radio button is selected to choose font name from the drop down
menu in text tab of font family section in CSS Stylesheets?
(A) unspecified (B) predefined3 (C) Fonte (D) family
Ans. : predefined3
28. Which tab is selected to choose background color in CSS stylesheets?
(A) Back (B) Bg (C) Bg color (D) Background
Ans. : Background
29. Which option will be enabled and all others will be disabled by selecting
checkbox of “All four sides use same border style’s?
(A) Top (B) Bottom (C) Left and Right (D) a and b both
Ans. : Top
30. Which option will be disabled by selecting checkbox of “All four sides
use same border style”?
(A) Top (B) Bottom (C) Left and Right (D) a and b both
Ans. : a and b both
31. Which options are available for border in border tab of CSS Stylesheets?
(A) Style (B) Width (C) Color (D) all of these

Page 4
Ans. : all of these
32. Which option is selected from CSS button drop down to create a style for
any other element after creating a style for a single element?
(A) Style – rule (B) Rule (C) Style (D) CSS
Ans. : Style – rule
33. Which of the following sides show CSS button in CSS Stylesheet dialogue
box?
(A) bottom right corner (B) upper right corner
(C) bottom left corner (D) upper left corner
Ans. : upper left corner
34. which option is selected to insert page title in KompoZer from Format
toolbar 1?
(A) Heading 1 (B) Hi (C) Title 1 (D) T1
Ans. : Heading 1
35. Which tab is selected from page area to see CSS Stylesheet code in
KompoZer?
(A) Edit (B) Source (C) Split (D) Design
Ans. : Source
36. Why is the code to be inserted less in CSS as compared to that in HTML?
(A) As o set the style for each element only once
(B) As to set the style for each element frequently
(C) As advanced technology is used
(D) None of these
Ans. : As o set the style for each element only once
37. Which of the following statements is true in reference of browser and
CSS?
(A) The CSS compatibility varies with different browsers
(B) Some of the style sheet features are not supported by the browser.
(C) Now-a-days, the latest browser versions are more standard-compliant.
(D) All of these
Ans. : All of these
38. Which type of web pages are static and cannot be changed after the
browser rendered them?

Page 5
(A) Dynamic (B) static (C) image (D) Portable
Ans. : static
39. With which of the following growth, people demand the websites to have
greater interactivity and better visual design?
(A) Open Source (B) Internet (C) Browser (D) CSS
Ans. : Internet
40. Why did Netscape develop JavaScript?
(A) As HTML can provide only static web pages.
(B) The demand of more interactivity created the need for a new web
programming language.
(C) a and b both
(D) None of these
Ans. : As HTML can provide only static web pages.
41. Why is JavaScript used in Web page?
(A) To improve the design (B) To validate the form
(C) To add interactivity (D) All of these
Ans. : All of these
42. Why it is necessary to provide validation in form?
(A) User may not leave some of the important fields empty.
(B) User may not enter the data in a wrong format inside the field.
(C) a and b both
(D) None of these
Ans. : a and b both
43. Which of the following will restrict users from making mistakes?
(A) Validation (B) Interactivity
(C) Communication (D) Non- interactivity
Ans. : Validation
44. Which of the following statements is true in case of JavaScript?
(A) JavaScript code runs from within the HTML web page.
(B) JavaScript code can be put directly inside the Webpage code as a separate
section.

Page 6
(C) JavaScript code is inserted into as HTML page, using the escript> ,..
e/script > tag.

(D) All of these


Ans. : All of these
45. Which of the following symbols is used as a mark of separation rather
than termination?
(A) ; (B) : (C) . (D) ,
Ans. : ;
46. Which of the following symbols you need not put if you place each
statement on a new line?
(A) ; (B) : (C) . (D) ,
Ans. : ;
47. Whose name should be kept simple and easy to remember while
creating a form in JavaScript?
(A) Form (B) Input field (C) Any other field (D) All of these
Ans. : All of these
48. Why should be the names given to the form, input field or any other field
kept easy?
(A) As they will be referenced in the script frequently
(B) Our work becomes easy.
(C) a and b both
(D) None of these
Ans. : As they will be referenced in the script frequently
49. Which tab is selected from Advanced Property Editor to write JavaScript?
(A) JavaScript (B) Jscript (C) Script (D) JavaScript
Events
Ans. : JavaScript Events
50. Which of the following options are shown in JavaScript Events tab of
Advanced Property Editor dialogue box?
(A) Attribute (B) Value (C) a and b both (D) Events
Ans. : a and b both
51. Which of the following options is selected to implement a particular
function when user clicks on Submit button form Attribute of JavaScript

Page 7
Events tab of Advanced Property Editor dialogue box?
(A) On submit (B) Submit (C) On click (D) Click
Ans. : On submit
52. Which of the following is called by its name and it takes a value inside
the parenthesis?
(A) Function (B) Script (C) CSS (D) All of these
Ans. : Function
53. Which of the following value validate Form function returns in the text
book?
(A) a Or b (B) -1 (C) False (D) True
Ans. : a Or b
54. Which statement is used to give value 3 for the variable ‘x’ in JavaScript?
(A) var x = = 3; (B) Var x = 3; (C) x = 3 (D) _= 3
Ans. : var x = = 3;
55. Which statement is used to give value “Hello Students” for the variable
‘y’ in JavaScript?
(A) var y = = “Hello Students”; (B) ver y = Hello Students;
(C) var y = “Hello Students”; (D) var y = ‘Hello Students’;
Ans. : var y = “Hello Students”;
56. Write a statement to give value of input text field which is in jsl form to
the variable ‘x’?
(A) x document.js1.name.value; (B) var x =js1.name.value;
(C) var x= document.j1.name.value; (D) var x = jsl.name;
Ans. : var x= document.j1.name.value;
57. Which statement is used to change the flow of the program?
(A) var (B) If (C) For (D) While
Ans. : If
58. Why ‘if” statement is used?
(A) To repeat statements of program.
(B) To change the flow of program.
(C) a and b both
(D) None of these
Ans. : To change the flow of program.
59. Why does ‘if’ statement check expressions?
(A) To validate specific condition. (B) To repeat specific expressions.
(C) a and b both (D) None of these
Ans. : To validate specific condition.
60. Write a statement to check whether the variable x’ is having null value or
not?
(A) if (x= null II x=” ”) (B) if (x=null II x = = ””)
(C) if= x=null II x==” ” (D) if= x=not null
Ans. : if (x=null II x = = ””)
61. Which of the following is created automatically by the browser?
(A) Form (B) Document (C) Window (D) Link
Ans. : Window
62. Which of the following is known as global object?
(A) Window (B) Document (C) Form (D) Link
Ans. : Window
63. Which of the following is controlled by methods of window object?
(A) Web browser (B) Link (C) CSS (D) Web page
window
Ans. : Web browser window
64. Which of the following is controlled by the methods of document object?
(A) Web page (B) Window (C) Link (D) CSS
Ans. : Web page
65. Which of the following object does the Form object contain?
(A) Location (B) Window (C) Document (D) Element
Ans. : Element
66. Which of the following methods is used to place the cursor inside
element and the particular element will be highlighted?
(A) Focus (B) Document (C) Blur (D) Highlights
Ans. : Focus
67. Which validation is applied for pin code field in text book?
(A) User should not keep the field (B) The pin code should be 6 digits
empty. long.
(C) Only numbers are allowed. (D) All of these.
Ans. : All of these.
68. Which type of function is Nan0 in JavaScript?
(A) Numeric (B) Text (C) Logica1 (D) Relational
Ans. : Numeric
69. Which value is Nan () function return if the value is not-a- number?
(A) True (B) False (C) Nan (D) Note Nan
Ans. : 1
70. Which value is Nan function returns if the value?
(A) False (B) True (C) Nan (D) Not Nan
Ans. : 0
71. Which value is Nano function returns in JavaScript?
(A) False (B) True (C) 1 (D) 0
Ans. : 0
72. Which of the following is OR operator in JavaScript?
(A) = (B) II (C) ; (D) .
Ans. : II
73. Which respective values are given to all the options in the city field
Ahmedabad, Rajkot, Surat in text book?
(A) 0, 1, 2 (B) 1, 2, 3 (C) — 1, 0, 1 (D) 2, 3, 4
Ans. : 1, 2, 3
74. Which option is selected from Insert menu to make changes in the field
of the form by opening form in KompoZer?
(A) Form → Field
(B) Form → change Field
(C) Form → Form Field
(D) Form → Edit Field
Ans. : Form → Form Field
75. Which value indicates that not a single option is selected by the user for
the city field?
(A) 0 (B) 1 (C) -1 (D) -
Ans. : -1
76. Which of the following is operator in JavaScript?
(A) = (B) && (C) = = (D) II
Ans. : = =
77. Which operator is used to assign value to the variable in JavaScript?
(A) = (B) && (C) = = (D) II
Ans. : =
78. Which of the following languages is a simple, lightweight programming
language that does not contain the advanced programming
functionalities?
(A) Binary (B) Animation (C) Scripting (D) Lower level
Ans. : Scripting
79. Which of the following is used in web pages to improve the design and
validate forms?
(A) HTML (B) Scripting language (Java Script)
(C) CSS (D) Multi media
Ans. : Scripting language (Java Script)
----- WISH YOU - ALL THE BEST!!! -----

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy