0% found this document useful (0 votes)
3 views7 pages

Ch 2 Computer Assignment

The document consists of a series of multiple-choice questions related to KompoZer, CSS, and JavaScript. It covers topics such as web designing, CSS syntax, JavaScript functions, and the use of KompoZer for editing web content. Each question provides four options, testing knowledge on various aspects of web development and programming.

Uploaded by

Himadri Kastha
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)
3 views7 pages

Ch 2 Computer Assignment

The document consists of a series of multiple-choice questions related to KompoZer, CSS, and JavaScript. It covers topics such as web designing, CSS syntax, JavaScript functions, and the use of KompoZer for editing web content. Each question provides four options, testing knowledge on various aspects of web development and programming.

Uploaded by

Himadri Kastha
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/ 7

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
10.Which is a valid CSS syntax?
a) h1 { color: red; }
b) h1 = red
c) h1: red;
d) color(h1) = red
11.Which selector uses a period (.)?
a) id selector
b) class selector
c) tag selector
d) universal selector
12.In KompoZer, which view allows editing of tags and CSS?
a) Preview
b) Normal
c) Source
d) Table
13.Which is not a method of applying CSS?
a) Inline
b) Internal
c) Embedded
d) External
14.Internal 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

16.JavaScript is mainly used for:


a) Styling pages
b) Managing servers
c) Making pages interactive
d) Writing databases
17.In KompoZer, JavaScript is inserted through:
a) File > JavaScript
b) Insert > Script
c) Tools > JS
d) Format > JS Editor
18.JavaScript is placed within:
a) <style> tag
b) <script> tag
c) <css> tag
d) <link> tag
19.JavaScript is:
a) Compiled language
b) Interpreted language
c) Database language
d) None
20.The alert box function is:
a) box()
b) show()
c) alert()
d) window()
21.KompoZer allows editing JS by:
a) Auto-run
b) Source tab
c) Design tab only
d) Script builder
22.JavaScript 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;
24.JavaScript code can be placed in:
a) Only <head>
b) Only <body>
c) Both head and body
d) None
25.To take user input in JavaScript, use:
a) alert()
b) prompt()
c) input()
d) scan()
26.Which 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
28.JavaScript event for button click is:
a) onpress
b) onsubmit
c) onclick
d) onchange
29.JavaScript are enclosed with:
a) {}
b) []
c) ()
d) ""
30.What is NaN in JavaScript?
a) Not a Number
b) Not an Integer
c) Null and None
d) Negative and Null
31.JavaScript variables can start with:
a) numbers
b) letters or _
c) special characters
d) %
32.JavaScript alert box has:
a) OK and Cancel
b) OK only
c) Textbox only
d) None

33.JavaScript file extension is:


a) .jav
b) .js1
c) .javas
d) .script
34.KompoZer supports which languages together?
a) HTML + CSS + JS
b) HTML + XML
c) CSS + SQL
d) JS + Java
35.KompoZer is also known as:
a) Nvu
b) HTML editor
c) Style Editor
d) Java tool
36.To 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
37.JS functions can be triggered by:
a) events like onclick
b) link only
c) loading page
d) None
38.The KompoZer GUI allows inserting:
a) Only code
b) Code and design visually
c) Just scripts
d) No styles
39.JavaScript statements are separated by:
a) ,
b) ;
c) :
d) .
40.To create dynamic HTML content using JS, use:
a) innerText
b) getHTML()
c) document.write()
d) create()
41.A JS function that runs on load is assigned to:
a) window.onload
b) page.onstart
c) run()
d) page.start()
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
44.To link JavaScript file in HTML:
a) <script src="file.js"></script>
b) <link rel="script">
c) <js file="file.js">
d) <script href="file.js">
45.A KompoZer file with JS code is saved as:
a) .txt
b) .html
c) .js
d) .htmjs
46.JavaScript execution starts:
a) After styling
b) When script is loaded by browser
c) After server check
d) After saving only
47.You can preview KompoZer file in:
a) CMD
b) Any browser
c) Notepad
d) Paint
48.Full 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

You might also like