NVS PGT CS 2017 Part-B

Question 1
Which of the following symbol is used to create a link to a named anchor in HTML?
A
&
B
@
C
#
D
$
Question 1 Explanation: 
The syntax for anchor tag is as follows
< a href="# " > and < a name=" " >
Question 2
Observe the HTML code given below and identify the line that will be ignored and not displayed by the browser:
< HTML >
< TITLE > Browser Test < /TITLE >
< BODY >
< I >Test < /I >
< !--testing -- >
< B > Website < /B >
< /BODY >
< /HTML >
A
< TITLE > Browser Test
B
< B > Website < /B >
C
< !--testing -- >
D
< I > Test
Question 2 Explanation: 
< ! --- > is used as comment in html code.
Comments are ignored by browser to display the corresponding content.
Question 3
An element in an XML DTD having no content is known as.
A
unrestricted element
B
Container element
C
Empty element
D
Null element
Question 3 Explanation: 
Empty elements are declared with the category keyword
EMPTY:
&l; !ELEMENT element-name EMPTY >
Example:
< !ELEMENT br EMPTY >
XML example:
< br / >
Question 4
Pick out the invalid element naming rule for an XML element from the following rules :
A
Names can start with a number or punctuation character.
B
Names can contain letters, numbers, hyphens, underscores and periods.
C
Names cannot contain spaces
D
Names must not start with the letters.
Question 4 Explanation: 
XML elements must follow these naming rules:
Element names are case-sensitive
Element names must start with a letter or underscore
Element names cannot start with the letters xml (or XML, or Xml, etc)
Element names can contain letters, digits, hyphens, underscores, and periods
Element names cannot contain spaces
Question 5
Choose the compulsory attribute of the XML declaration statement from the following attributes :
A
Version
B
Encoding
C
Standalone
D
Doctype
Question 5 Explanation: 
An XML declaration is made up of as many as three name/value pairs, syntactically identical to attributes.
The three attributes are a mandatory version attribute and optional encoding and standalone attributes
Question 6
The element content model of a DTD uses the '+' symbol to indicate that the element.
A
Occurs one or multiple times
B
Occurs zero or multiple times
C
Occurs one or not at all
D
Occurs only once
Question 6 Explanation: 
“+” is used to indicate the element occurs one or multiple times
“*” is used to indicate the element occurs one or multiple times
Question 7
Identify which of the following is not a predefined internal entity in XML specification :
A
& apos; (to display the 'symbol)
B
& amp; (to display the & symbol)
C
& nbsp; (to display the 'symbol)
D
& quot; (to display the "symbol)
Question 7 Explanation: 
In XML, & apos; is used to display the symbol(‘).
& amp; (to display the & symbol)
& quot; (to display the "symbol)
& nbsp; (to display the space symbol)
Question 8
IPv6 has _______ bit address.
A
32
B
64
C
128
D
Variable
Question 8 Explanation: 
IPV4 has 32-bit address and IPV6 has 128 bit address.
IPv6 uses a 128-bit address, theoretically allowing 2128, or approximately 3.4×1038 addresses.
Question 9
Identify the incorrect statement about XML parser :
A
A parser is a software program that checks the syntax used in an XML file.
B
A validating passer ensures that the XML document is well formed but not valid.
C
Validating passer checks syntax as well as compares the structure of the XML document .
D
Non-validating parser only checks for structure problems with the XML code.
Question 9 Explanation: 
A parser is a piece of program that takes a physical representation of some data and converts it into an in-memory form for the program as a whole to use. Parsers are used everywhere in software. An XML Parser is a
parser that is designed to read XML and create a way for programs to use XML.
Question 10
In the _____ method, after the station finds the idle, it sends or refrains from sending based on probability.
A
Non-persistent
B
One-persistent
C
P-persistent
D
Non-validating
Question 10 Explanation: 
In p-persistent CSMA protocol, after the station finds the line idle, it sends or refrains from sending based on the outcome of a random number generator.
Question 11
What is the main function of transport layer?
A
Node to node delivery
B
Synchronization
C
Updating and maintenance of routing tables.
D
Process to process message delivery.
Question 11 Explanation: 
The main function of transport layer is to transfer the packet from source to destination ensuring that the packet sent has not been modified/destroyed and lost.
Transport layer is the 4th layer in TCP/IP Model that deals with logical communication between process
Question 12
Shreya is adding links to her school website. She wants that the link colour should change as soon as the visitor's mouse pointer is over the link and then the original colour of the link should be restored when the mouse points anywhere else on the page. which of the following two event handlers will be required for the script to achieve this effect ?
A
onMouseDown and onMouseUp
B
onMouseIn and onMouseOut
C
onMouseOver and onMouseOut
D
onMouseOver and onMouseUp
Question 12 Explanation: 
onmouseout:The event occurs when a user moves the mouse pointer out of an element, or out of one of its children
onmouseover:The event occurs when the pointer is moved onto an element, or onto one of its children
Question 13
Study the following three statements carefully :
Statement 1 : JavaScript support 3 primitive data types - integer, string and Boolean.
Statement 2 : JavaScript support 2 composite data types - arrays and objects.
Statement 3 : JavaScript support 2 special data types - null and undefined.
Choose the option below that is absolutely correct about the above three statements.
A
Only statement 2 and statement 3 are true.
B
Only statement 1 and statement 3 are true.
C
Only statement 1 and statement 3 are true.
D
All the statements are true.
Question 13 Explanation: 
There are six basic data types in JavaScript which can be divided into three main categories: primitive (or primary), composite (or reference), and special data types. String, Number, and Boolean are primitive data types.
Object, Array, and Function (which are all types of objects) are composite data types. Whereas Undefined and Null are special data types.
Question 14
Study the code given below: < HTML > < HEAD > < SCRIPT LANGUAGE = "JavaScript" > function start () { alert ("Event Occured") } < /SCRIPT > < /HEAD > < BODY onLoad = "Start()" > < h1 > Guess the event < /H1 > < /BODY > < /HTML > How many times will the function Start () be called ?
A
Once every time the system starts.
B
Once every time the web page is refreshed.
C
Only once when the window is opened.
D
Will not be called as the event handler is wrong.
Question 14 Explanation: 
onload() event is execute a JavaScript immediately after a page has been loaded
Question 15
Identify the statement that is equivalent to the given statement : document. write ("Hello! Welcome to JavaScript")
A
window.document.write ("Hello! Welcome to JavaScript")
B
body.document.write. ("Hello! Welcome to JavaScript")
C
location .document.write ("Hello! Welcome to JavaScript")
D
document.writeln ("Hello! Welcome to JavaScript")
Question 15 Explanation: 
The document object (of the HTML DOM) is a property of the window object. The statement window.document.write () is equivalent to document.write() statement.
Question 16
Sankjukta created a smiley face in flash and then converted it into a symbol to be stored in the flash library. which of the following statements is false about this graphic symbol named "Smiley" ?
A
Smiley is a stage level object.
B
Smiley is a overlay level object.
C
Many instances of this graphic can be created and used on stage.
D
This object will operate in sync with the timeline of the main movie.
Question 16 Explanation: 
Overlay is nothing but Multiplies or screens the colours, depending on the base colours
Question 17
What will be the output of the following script command ?
document.write (2+5+"8");
A
258
B
Error
C
78
D
7
Question 17 Explanation: 
The “+” operator acts as arithmetic operator along with integers and concatenation operator along with string.
The expression 2+5+"8" gives 78
Question 18
To delete unwanted parts of an image which are not required in the final output, one has to :
A
Blur unwanted parts
B
Change the canvas size to exclude parts
C
Use the crop tools
D
Use the sponge tool
Question 18 Explanation: 
The Crop Tool allows you to remove unwanted parts of an image by drawing a rectangle around the part you want to keep and then rotating it if needed. Outside of the selection is deleted.
There are 18 questions to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access