JAVA Script
On This Page
This set of Web Technologies Multiple Choice Questions & Answers (MCQs) focuses on JAVA Script
Q1 | Tags and text that are not directly displayed on the page are written in___________section.
- web browser
- title
- empty
- head
Q2 | Some tags enclose the text. Those tags are known as ___________
- single tag
- paired tag
- empty
- head
Q3 | The tag is used to _________the text or sentence.
- single tag
- paired tag
- strikeout
- head
Q4 | The tag is used to display ________ text form a document
- single tag
- paired tag
- strikeout
- deleted
Q5 | _________ is used to give additional information.
- title tag
- paired tag
- strikeout
- deleted
Q6 | What is the range of short data type in Java script ?
- -128 to 127
- -32768 to 32767
- -2147483648 to 2147483647
- none of the mentioned
Q7 | What is the range of byte data type in Java script?
- -128 to 127
- -32768 to 32767
- -2147483648 to 2147483647
- none of the mentioned
Q8 | An expression involving byte, int, and literal numbers is promoted towhich of these?
- int
- long
- byte
- float
Q9 | What is the numerical range of a char data type in Java script?
- -128 to 127
- 0 to 256
- 0 to 32767
- 0 to 65535
Q10 | Which of these coding types is used for data type characters in Java script?
- ascii
- iso-latin-1
- unicode
- none of the mentioned
Q11 | Which one is a valid declaration of a Boolean?
- boolean b1 = 1;
- boolean b2 = ‘false’;
- boolean b3 = false;
- boolean b4 = ‘true’
Q12 | Which of these operators is used to allocate memory to array variable inJava script?
- malloc
- alloc
- new
- new malloc
Q13 | Which of these is an incorrect array declaration?
- intarr[] = new int[5]
- int [] arr = new int[5]
- intarr[] = new int[5]
- intarr[] = int [5] new
Q14 | Which of these is necessary to specify at time of array initialization?
- row
- column
- both row and column
- none of the mentioned
Q15 | Which of the following can be operands of arithmetic operators?
- numeric
- boolean
- characters
- both numeric & characters
Q16 | Modulus operator, %, can be applied to which of these?
- integers
- floating – point numbers
- both integers and floating – point numbers
- none of the mentioned
Q17 | Which operator is used to invert all the digits in a binary representation ofa number?
- ~
- <<<
- >>>
- ^
Q18 | On applying Left shift operator, <<, on integer bits are lost one they areshifted past which position bit?
- 1
- 32
- 33
- 31
Q19 | Which of these operators can skip evaluating right hand operand?
- !
- none of the mentioned
- &
- &&
Q20 | Which of these have highest precedence?
- ()
- ++
- *
- >>
Q21 | Which of these statements are incorrect?
- equal to operator has least precedence
- brackets () have highest precedence
- division operator, /, has higher precedence than multiplication operator
- addition operator, +, and subtraction operator have equal precedence
Q22 | Which of these selection statements test only for equality?
- if
- switch
- if & switch
- none of the mentioned
Q23 | . Which of these are selection statements in Java script?
- if()
- for()
- continue
- break
Q24 | Which of the following is not a valid jump statement?
- break
- goto
- continue
- return
Q25 | _______is the measured as the amount of data that can be transferred from onepoint to another point within a specific amount of time.
- http
- bandwidth
- webpage
- dream viewer