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?
& | |
@ | |
# | |
$ |
Question 1 Explanation:
The syntax for anchor tag is as follows
< a href="# " > and < a name=" " >
< 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 >
< HTML >
< TITLE > Browser Test < /TITLE >
< BODY >
< I >Test < /I >
< !--testing -- >
< B > Website < /B >
< /BODY >
< /HTML >
< TITLE > Browser Test | |
< B > Website < /B > | |
< !--testing -- > | |
< I > Test |
Question 2 Explanation:
< ! --- > is used as comment in html code.
Comments are ignored by browser to display the corresponding content.
Comments are ignored by browser to display the corresponding content.
Question 3 |
An element in an XML DTD having no content is known as.
unrestricted element | |
Container element | |
Empty element | |
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 / >
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 :
Names can start with a number or punctuation character. | |
Names can contain letters, numbers, hyphens, underscores and periods. | |
Names cannot contain spaces | |
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
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 :
Version | |
Encoding | |
Standalone | |
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
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.
Occurs one or multiple times | |
Occurs zero or multiple times | |
Occurs one or not at all | |
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
“*” 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 :
& apos; (to display the 'symbol) | |
& amp; (to display the & symbol) | |
& nbsp; (to display the 'symbol) | |
& 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)
& amp; (to display the & symbol)
& quot; (to display the "symbol)
& nbsp; (to display the space symbol)
Question 8 |
IPv6 has _______ bit address.
32 | |
64 | |
128 | |
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.
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 parser is a software program that checks the syntax used in an XML file. | |
A validating passer ensures that the XML document is well formed but not valid. | |
Validating passer checks syntax as well as compares the structure of the XML document . | |
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.
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.
Non-persistent | |
One-persistent | |
P-persistent | |
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?
Node to node delivery | |
Synchronization | |
Updating and maintenance of routing tables. | |
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
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 ?
onMouseDown and onMouseUp | |
onMouseIn and onMouseOut | |
onMouseOver and onMouseOut | |
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
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.
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.
Only statement 2 and statement 3 are true. | |
Only statement 1 and statement 3 are true. | |
Only statement 1 and statement 3 are true. | |
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.
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 ?
Once every time the system starts. | |
Once every time the web page is refreshed. | |
Only once when the window is opened. | |
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")
window.document.write ("Hello! Welcome to JavaScript") | |
body.document.write. ("Hello! Welcome to JavaScript") | |
location .document.write ("Hello! Welcome to JavaScript") | |
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" ?
Smiley is a stage level object. | |
Smiley is a overlay level object. | |
Many instances of this graphic can be created and used on stage. | |
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");
document.write (2+5+"8");
258 | |
Error | |
78 | |
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
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 :
Blur unwanted parts | |
Change the canvas size to exclude parts | |
Use the crop tools | |
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.