Std 12
Chapter 2
1. KompoZer is mainly used for:
a) Image editing
b) Database management
c) Web designing
d) Spreadsheet creation
2. CSS stands for:
a) Creative Style Sheet
b) Custom Script Styling
c) Cascading Style Sheets
d) Common Style Source
3. To insert a style in KompoZer, you go to:
a) Insert > JavaScript
b) Format > Styles
c) Tools > Design
d) File > CSS Link
4. Inline styles are added using:
a) link tag
b) style attribute in HTML tags
c) CSS file
d) External script
5. To add external CSS in KompoZer, we use:
a) <link> tag in the Head section
b) <style> inside body
c) <script>
d) <css>
6. The KompoZer tab where we can switch to HTML code is:
a) Design View
b) Preview View
c) Source View
d) Publish View
7. To change font color using KompoZer GUI:
a) Use table tools
b) Format > Text Color
c) Tools > Scripts
d) Format > Table
8. Which of these properties is used to change background color?
a) background-color
b) bgcolor
c) color
d) font-color
9. In KompoZer, the “Style” menu affects:
a) Forms
b) Images
c) Text and page layout
d) Tables only
[Link] is a valid CSS syntax?
a) h1 { color: red; }
b) h1 = red
c) h1: red;
d) color(h1) = red
[Link] selector uses a period (.)?
a) id selector
b) class selector
c) tag selector
d) universal selector
[Link] KompoZer, which view allows editing of tags and CSS?
a) Preview
b) Normal
c) Source
d) Table
[Link] is not a method of applying CSS?
a) Inline
b) Internal
c) Embedded
d) External
[Link] CSS is written within:
a) <body>
b) <head>
c) <title>
d) <html>
15.A CSS rule consists of:
a) Tag + Script
b) Selector + Declaration
c) Variable + Value
d) Object + Method
[Link] is mainly used for:
a) Styling pages
b) Managing servers
c) Making pages interactive
d) Writing databases
[Link] KompoZer, JavaScript is inserted through:
a) File > JavaScript
b) Insert > Script
c) Tools > JS
d) Format > JS Editor
[Link] is placed within:
a) <style> tag
b) <script> tag
c) <css> tag
d) <link> tag
[Link] is:
a) Compiled language
b) Interpreted language
c) Database language
d) None
[Link] alert box function is:
a) box()
b) show()
c) alert()
d) window()
[Link] allows editing JS by:
a) Auto-run
b) Source tab
c) Design tab only
d) Script builder
[Link] comments start with:
a) <!-- -->
b) // or / /
c) #
d) //
23.A correct JavaScript variable declaration is:
a) let x = 5;
b) var x = 5;
c) int x = 5;
d) x := 5;
[Link] code can be placed in:
a) Only <head>
b) Only <body>
c) Both head and body
d) None
[Link] take user input in JavaScript, use:
a) alert()
b) prompt()
c) input()
d) scan()
[Link] statement is used to stop execution in a loop?
a) continue
b) return
c) break
d) stop
27.A JavaScript function starts with the keyword:
a) method
b) call
c) function
d) define
[Link] event for button click is:
a) onpress
b) onsubmit
c) onclick
d) onchange
[Link] are enclosed with:
a) {}
b) []
c) ()
d) ""
[Link] is NaN in JavaScript?
a) Not a Number
b) Not an Integer
c) Null and None
d) Negative and Null
[Link] variables can start with:
a) numbers
b) letters or _
c) special characters
d) %
[Link] alert box has:
a) OK and Cancel
b) OK only
c) Textbox only
d) None
[Link] file extension is:
a) .jav
b) .js1
c) .javas
d) .script
[Link] supports which languages together?
a) HTML + CSS + JS
b) HTML + XML
c) CSS + SQL
d) JS + Java
[Link] is also known as:
a) Nvu
b) HTML editor
c) Style Editor
d) Java tool
[Link] run JavaScript in browser from KompoZer, we must:
a) Save as text
b) Save as .html and open in browser
c) Save as .js
d) Use Notepad
[Link] functions can be triggered by:
a) events like onclick
b) link only
c) loading page
d) None
[Link] KompoZer GUI allows inserting:
a) Only code
b) Code and design visually
c) Just scripts
d) No styles
[Link] statements are separated by:
a) ,
b) ;
c) :
d) .
[Link] create dynamic HTML content using JS, use:
a) innerText
b) getHTML()
c) [Link]()
d) create()
41.A JS function that runs on load is assigned to:
a) [Link]
b) [Link]
c) run()
d) [Link]()
42.== checks for:
a) value only
b) type
c) both
d) syntax
43.=== checks for:
a) only value
b) value and type
c) only type
d) identity
[Link] link JavaScript file in HTML:
a) <script src="[Link]"></script>
b) <link rel="script">
c) <js file="[Link]">
d) <script href="[Link]">
45.A KompoZer file with JS code is saved as:
a) .txt
b) .html
c) .js
d) .htmjs
[Link] execution starts:
a) After styling
b) When script is loaded by browser
c) After server check
d) After saving only
[Link] can preview KompoZer file in:
a) CMD
b) Any browser
c) Notepad
d) Paint
[Link] form of WYSIWYG in KompoZer is:
a) Write Your Syntax In Good form
b) What You See Is What You Get
c) Web Your Scripts If Good
d) What You Script Is Good