0% found this document useful (0 votes)
2 views

CH.2_CSS & JAVA SCRIPT MCQ

Chapter 2 covers the fundamentals of Cascading Style Sheets (CSS) and JavaScript, including their syntax, usage, and benefits in web development. It includes multiple-choice questions that test knowledge on CSS rules, JavaScript functions, and event handling. The chapter emphasizes the importance of separating style from content and the role of JavaScript in enhancing interactivity on web pages.

Uploaded by

kishormodi6996
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

CH.2_CSS & JAVA SCRIPT MCQ

Chapter 2 covers the fundamentals of Cascading Style Sheets (CSS) and JavaScript, including their syntax, usage, and benefits in web development. It includes multiple-choice questions that test knowledge on CSS rules, JavaScript functions, and event handling. The chapter emphasizes the importance of separating style from content and the role of JavaScript in enhancing interactivity on web pages.

Uploaded by

kishormodi6996
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Chapter 2 Cascading Style Sheets and Javascript

(01)What is the full form of CSS?


(a)Computing Style sheet (b)Cascading Stylesheet (c)Computing Style service (d)Cascading Secure sheet
(02)……….allows you to specify styles for the visual elements of the website?
(a)DHTML (b)HTML (c)CSS (d)CHS
(03)What is the use of CSS?
(a)To arrange the visual elements (b)To specify styles for the visual element
(c)To prepare coding of HTML (d)To prepare JavaScript
(04)Which is the wrong statement for CSS?
(a)Specifies styles for the visual elements
(b)Keeps it separate from the details of how to display the content
(c)Specify the appearance of particular page elements on the screen
(d)Arrange the visual elements
(05)……….is not the benefit of keeping style separate from the content?
(a)Arrange the visual elements (b)Avoid duplication in coding
(c)Easy maintenance of code (d)Use the same content with different styles for different purposes
(06)……….can be used for the information to be put on internet?
(a)CSS (b)HTML (c)DHTML (d)All of these
(07)……….specifies the styles for the visual elements.
(a)CSS (b)HTML (c)DHTML (d)All of these
(08)……….can be done using CSS?
(a)Control the font types of font and element colors (b)Background features
(c)Control the positions of element (d)All of these
(09)……….sheet can be used to add special characters in the website?
(a)Spread (b)Work (c)Style (d)Main
(10)The syntax of CSS consists of special symbol known as……….?
(a)regulation (b)rules (c)style (d)cascade
(11)A CSS rule has ………. Main parts?
(a)2 (b)3 (c)4 (d)5
(12)CSS syntax uses ………. Brackets?
(a)( ) (b) { } (c) [ ] (d) < >
(13)……….is not the part of the CSS syntax?
(a)Selector (b)Declaration (c)HTML details (d)None of these
(14)……….is taken as a selector?
(a)HTML details (b)HTML element (c)Any name (d)Identifier
(15)Style can be applied to……….?
(a)HTML element (b)Any name (c)Identifier (d)Parameter
(16)CSS rules contain ………. Part?
(a)Property (b)value for the property (c)(a)and(b) both (d)(a) or (b)
(17)……….is the wrong statement for the CSS syntax.
(a)Selector must be an HTML element (b)CSS syntax is divided into two parts
(c)More than one property can be used (d)Property and value is separated using ;
(18)……….is the correct syntax of CSS?
(a)Selector {Property ; Value} (b) Selector {Property : Value};
(c) Selector {Property : Value} (d)Selector [Property : Value]
(19)As per our syllabus, using ………. Software CSS is created?
(a)Notepad (b)KompoZer (c)Gedit (d)CompoZer
(20)KompoZer uses ……….as default?
(a)CSS (b)HTML (c)DHTML (d)PHP
12 Eng. Med. Lesson 2 (Computer Studies) 1
(21)Using……….we can get confirmation that CSS is used by default by KompoZer?
(a)Edit→Preferences (b)Tools→Preferences (c) (a) or (b) (d)None of these
(22)How to open option dialog box in KompoZer?
(a) Edit→Preferences (b) Tools→Preferences (c) (a) (or) (b) (d)View→Preferences
(23)……….statement is wrong about the KompoZer software?
(a)CSS can be added with HTML (b)CSS can be added easily
(c)KompoZer can only be used for CSS (d)All of these
(24)Cascade button is on……….toolbar of KompoZer?
(a)Standard toolbar (b)Composition toolbar (c)Format toolbar (d)Drawing toolbar
(25)While preparing a style, if a new file is opened and not saved by giving a filename then……….dialog box opens?
(a)Option (b)Page title (c)New (d)Save
(26)The element which is used to define Stylesheet rule that CSS Stylesheet dialog box is under……….heading?
(a)External Stylesheet (b)Internal Stylesheet (c)Right Stylesheet (d)General Stylesheet
(27)……….tab is not displayed on the right side of CSS Stylesheet dialog box?
(a)General (b)Number (c)Text (d)Box
(28)……….section is used to give specific style to the HTML element?
(a)General (b)Text (c)Background (d)All of these
(29)……….button is clicked to insert an image as the background while preparing style?
(a)Choose file (b)Select file (c)Browser (d)Select image
(30)……….tab displays the Stylesheet rule that is given to the element?
(a)General (b)Box (c)Aural (d)Code
(31)How many buttons are there in CSS Stylesheets to prepare style?
(a)5 (b)6 (c)7 (d)8
(32)……….view is selected to see the source code of CSS Stylesheet?
(a)Design (b)Source (c)Split (d)Normal
(33)……….is false for CSS Stylesheet?
(a)To modify the Stylesheet user can make changes in CSS file
(b)CSS has less-code compared to that in HTML
(c)The webpage will load faster (d)CSS structures makes the website slow and inefficient
(34)……….is the disadvantages of CSS?
(a)CSS has less-code compared to that in HTML (b)Compatibility varies with different browsers
(c)Stylesheet features are not supported by the browser (d) (b) and (c) both
(35)……….type of webpage is static?
(a)HTML (b)DHTML (c)JAVASCRIPT (d)All of these
(36)……….company has developed the JavaScript?
(a)Microsoft (b)ORACLE (c)Netscape (d)Intel
(37)……….is a simple, lightweight programming language that does not contain the advanced programming functionalities
of language?
(a)JavaScript (b)HTML (c)DHTML (d)None of these
(38)……….controls appearance of the webpage?
(a)JavaScript (b)HTML (c)DHTML (d)PHP
(39)What is the use of JavaScript in a webpage?
(a)To improve the design (b)To validate the forms
(c) (a) and (b) both (d)To change the modern format in a webpage
(40)……….browser supports JavaScript?
(a)Mozilla Firefox (b)Chrome (c)Safari and Internet explorer (d)All of these
(41)JavaScript can be used for a……….in a webpage?
(a)Interactivity with the user (b)Control the browser

12 Eng. Med. Lesson 2 (Computer Studies) 2


(c)dynamically create HTML content (d)All of these
(42)What type of a script is JavaScript?
(a)Application client side (b)Application server side (c)For any webpage (d)All of these
(43)It is used to validate the data entered in the HTML forms on the……….before sending it to the server?
(a)Server side (b)Client side (c)HTML details (d)All of these
(44)……….can be checked in a form by using JavaScript?
(a)Has the user left any required field empty? (b)Has the user entered a valid date ?
(c)Check whether contents of two fields are same or not? (d)All of these
(45)……….is not true for JavaScript?
(a)JavaScript is used to improve the design
(b)JavaScript contains the advanced programming functionalities of languages like C and Java
(c)JavaScript validates the form (d)Browsers like Chrome and Safari support JavaScript
(46)……….is true for JavaScript?
(a)JavaScript is not a case sensitive language
(b)The lines between the <script>and</script>tag contains the JavaScript code
(c)JavaScript is not included with HTML
(d)JavaScript can not be inserted directly as an independent part in a webpage
(47)Generally it is preferred that the JavaScriptcode should be placed in the……….tag?
(a)<body>…..</body> (b) <head>…..</head> (c) <title>…..</title> (d) <form>…..</form>
(48)The……….tag tells the browser to interpret all the text between the <script> tags as a script?
(a)<body> (b)<head> (c)<script> (d)<form>
(49)In document.write(“HELLO DIVYAKANT SIR”), ……….is the method?
(a)document (b)write (c)HELLO STUDENT (d)none of these
(50)……….is the correct command to display something directly in the browser?
(a)print.write() (b)document.write() (c)display.write() (d)write.document()
(51)In document.write(“Enjoy Computer with Divyakant Sir”); ……….is the object?
(a)document (b)write (c)saraswati (d)none of these
(52)……….symbol is optional in JavaScript?
(a)Colon(:) (b)Semicolon(;) (c)Fullstop(.) (d)Double quotes(“ ”)
(53)What is the use of semicolon in JavaScript?
(a)Termination of statement (b)Separation of statement
(c)Merge two statements (d)A and B both
(54)Putting a………. is a good practice?
(a)colon(:) (b)@ (c)semicolon(;) (d)#
(55)JavaScript statements are written in……….brackets?
(a)< > (b)( ) (c){ } (d)[ ]
(56)JavaScript statements can be grouped together in a ……….?
(a)function (b)routine (c)(a)or(b) (d)main block
(57)Functions are defined with……….keyword?
(a)function (b)main (c)void main (d)func
(58)……….is the inbuilt function?
(a)Validate form() (b)alert() (c)form() (d)none of these
(59)Function is also known s ……….?
(a)routine (b)dynaset (c)task (d)procedure
(60)What is the use of alert() function?
(a)Accepts the content (b)Displays the content (c)(a)and(b) both (d)Accepts the data from the user
(61)……….type of function is alert()?
(a)User defined (b)Built-in (c)Simple and easy (d)None of these
(62)……….statement is false about the function?

12 Eng. Med. Lesson 2 (Computer Studies) 3


(a)Function can be called from any location in the source code
(b)Function can only be defined in the body section
(c)Function only accepts the value given in its brackets (d)Function can be called by its name
(63)Values given in the function are known as……….?
(a)variable (b)arguments (c)parameters (d) (b) or (c)
(64)……….statement is used to stop the execution of the function and return a specific value?
(a)end (b)exit (c)return (d)pause
(65)When user clicks the submit button is known as?
(a)events (b)event handler (c)work (d)process
(66)……….is used to make interactive page which respond to the event done by user?
(a)HTML (b)DHTML (c)Java Programming (d)JavaScript
(67)……….is created by the interaction of user and webpage?
(a)Events are created (b)Event handler is created (c)Process is done (d)Work is done
(68)When loading of image is cancelled, it is known as……….event?
(a)blur (b)abort (c)load (d)unload
(69)When an error occurs while loading an image, it is known as……….event?
(a) unload (b)blur (c)error (d)reset
(70)When element such as button becomes active, it is known as……….event?
(a)active (b)blur (c)focus (d)select
(71)When user leaves a page, it is known as ………. Event?
(a)unload (b)reset (c)error (d)blur
(72)When mouse pointer is over the particular element, it is known as……….event?
(a)select (b)Mouse over (c)submit (d)load
(73)When document or image is loaded, it is known as……….event?
(a)load (b)select (c)click (d)submit
(74)……….is the event handler?
(a)HTML Code (b)JavaScript code (c)DHTML Code (d)Java programming code
(75)……….specific code is executed when a particular event occurs?
(a)JavaScript (b)HTML (c)Java (d)DHTML
(76)……….is not an event handler?
(a)onclick ( ) (b)onsubmit ( ) (c)load ( ) (d)onfocus ( )
(77)……….is not an event handler?
(a)blur (b)exit (c)reset (d)error
(78)……….is the name of event handler for the ‘click’ event?
(a)Click ( ) (b)On Click ( ) (c)On Click{ } (d)On Click[ ]
(79)……….is the name of event handler for the ‘submit’ event?
(a)OnSubmit( ) (b)Submit( ) (c)onsubmit( ) (d)onSubmit( )
(80)……….means the storage for storing values?
(a)Variable (b)Parameter (c)Identifier (d)All of these
(81)……….is used to declare variables in JavaScript?
(a)Var (b)var (c)VAR (d)vr
(82)……….is true for the variables in JavaScript?
(a)Variable is case sensitive (b)Number, string or characters can be stored in variable
(c)Variables can be declared by using var keyword (d)All of these
(83)……….is the use of if statement?
(a)Conditional statement to change the flow of program (b)Checks for the validation of condition
(c)(a) and (b) both (d)For non-conditional work
(84)BOM stands for……….?
(a)Browser Oriented Model (b)Browser Object Model (c)Big Object Model (d)Big Oriented Model

12 Eng. Med. Lesson 2 (Computer Studies) 4


(85)What is the use of Browser Object Model?
(a)To arrange the objects in the browser (b)To change the webpage
(c)To control the elements of the webpage (d)All of these
(86)All browsers are split into different parts or object that can be accessed using JavaScript.These parts are known
as……….?
(a)BOM (b)BOC (c)MOB (d)OBC

(87)The top level object in the browser object model is……….object?


(a)document (b)form (c)window (d)link
(88)The window object is the……….object in the browser?
(a)main (b)global (c)changer (d)normal
(89)Why the window object is known as the global object?
(a)Because it is common in all the browsers
(b)Because all other browser objects are contained within it
(c)Because it is the top object of BOM (d)All of these
(90)By……….web browser window is controlled in window object?
(a)methods (b)properties (c)(a) and (b) both (d)document
(91)What is included in object?
(a)Document object (b)Form object (c)Radio object (d)Checkbox object
(92)……….is the most important object in the browser object model?
(a)Form object (b)Document object (c)Radio object (d)Checkbox object
(93)……….object is used to display webpage in a browser?
(a)Location object (b)Form object (c)Document object (d)Textarea object
(94)……….is included in the document object of BOM?
(a)Form (b)images (c)links and other elements (d)All of these
(95)……….object is used to give reference to other objects?
(a)Element (b)Document (c)Link (d)All of these
(96)……….can be the object as the element object of browser object mode?
(a)Radio button (b)Text box (c)Check box (d)All of these
(97)……….method is used to take the control to the specific element of the form?
(a)Focus (b) Alert (c)Document (d)Confirm
(98)When focus () method is used?
(a)Any time in JavaScript (b) after getting alert () message
(c)After getting confirm message (d) When the for is created
(99)In internet some fields in the form are displayed with red asterisk (*) is known as……….?
(a) This field is optional (b) this field is mandatory, can’t leave it blank
(c) this field is out of the reach (d)only correct information is to be filled up
(100) ……….is used to clear the validation of the entered data?
(a)HTML (b)DHTML (c)Java (d)JavaScript
(101) ……….is not the inbuilt function?
(a)isNaN ( ) (b)alert ( ) (c)if ( ) (d)confirm ( )
(102) ……….built in function is there to work with numbers in JavaScript?
(a)digits ( ) (b)isNaN ( ) (c)isNaN ( ) (d)alert ( )
(103) ……….is the most used numerical unction in JavaScript?
(a)isNaN( ) (b)Number ( ) (c)digits ( ) (d)None of these ( )
(104) NaN stands for……….?
(a)Number and Number (b)Not a Number (c)Not a Numeric (d)Numeric and Number
(105) isNaN(123) will give……….output?
(a)true (b)false (c)error (d)123

12 Eng. Med. Lesson 2 (Computer Studies) 5


(106) isNaN(“DivyakantSir”) will give……….output?
(a)true (b)false (c)error (d)hello
(107) ……….element is used to write script in HTML?
(a)<head>…</head> (b)<script>…</script> (c)<scr>…</scr> (d)<Body>…</Body>
(108) Which of the following allows specifying styles for the visual elements of the website?
(a)Cascading Stylesheets (b)Web page (c)Form (d)Animation
(109) Which of the following is known as special symbol in the syntax of CSS?
(a)Rules (b)Selector (c)Declaration (d)Input

(110) Which of the following are two main parts of CSS rule?
(a)Selector, declaration (b)Select, declaration (c)Selector, declare (d)Selection, declaration
(111) Which of the following is an HTML element on which style can be applied?
(a)Declaration (b)Selector (c)Select (d)Declare
(112) 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}
(113) Which of the following has developed JavaScript?
(a)Yahoo (b)Google (c)Wikipedia (d)Netscape
(114) Which of the following is a scripting language that allows adding programming to webpages?
(a)Action script (b)JavaScript (c)HTML (d)CSS
(115) Which of the following is a scripting language that is simple, lightweight programming language that does not
contain advanced programming functionalities?
(a)JavaScript (b)HTML (c)C (d)Java
(116) Which of the following tag is used to insert JavaScript code into an HTML page?
(a)<script>… <script> (b)<script>… </script> (c)<script>… <//script> (d)</script>… </script>
(117) 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
(118) Which of the following is a reusable block of code that performs a particular task?
(a)Array (b) Code (c)Program (d)Function
(119) Which of the following statement is used to return a value in a function?
(a)Return (b) Function (c) Select (d) Send
(120) 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
(121) Which of the following is not an event?
(a)Abort (b)Mouseover (c)Set (d)Load
(122) Which of the following is a container for storing data?
(a)Variable (b)Integer (c)Event (d)Event handler
(123) Which of the following stands for BOM?
(a)Browser of Model (b) Browser Object Model (c)Browser Object Modelling (d) Browse Object Model
(124) Which of the following is the top level object in the browser object model?
(a)Window (b)Document (c)Page (d)Location
(125) Which of the following stands for NaN?
(a)Not a Numeric (b)Not a Number (c)Not a Noun (d)Not an Numeric

12 Eng. Med. Lesson 2 (Computer Studies) 6

You might also like