0% found this document useful (0 votes)
22 views8 pages

MCQ'S 13

The document consists of a series of multiple-choice questions related to JavaScript and web development, categorized into three levels of difficulty. Topics covered include JavaScript syntax, operators, error handling, and methods for manipulating arrays and objects. It serves as a quiz or assessment tool for evaluating knowledge in JavaScript programming.

Uploaded by

Yeash Kamal
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)
22 views8 pages

MCQ'S 13

The document consists of a series of multiple-choice questions related to JavaScript and web development, categorized into three levels of difficulty. Topics covered include JavaScript syntax, operators, error handling, and methods for manipulating arrays and objects. It serves as a quiz or assessment tool for evaluating knowledge in JavaScript programming.

Uploaded by

Yeash Kamal
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/ 8

MODULE 13: JAVASCRIPAT AND CREATING WEB PAGE

LEVEL: 1

1. What is the process of writing instruction to be get executed by the computer?


(A).Debugging (B).Executing (C).Presenting (D). Programming
2. Which is a statement terminator in java script?
(A), (B); (C): (D)...

3. Who developed java script?

(A).Brendan eich (B).Brendan rich (C).John eckerl (D). John mauchly

4. Which programming language’s syntax influences java script syntax?

(A).C (B).COBOL (C).Java (D).JDk

5. Which web server provides good customer support if it had any issues?

(A).Apache (B).IIS (C).Lite speed (D).Nginx

6. Which web server has high performances stability configuration and low
resource usage?

(A).Apache (B). IIS (C). Lite speed (D). Nginx

7. Which key is used to declare a variable in java script?

(A). Const (B). Dec (C). Dim (D). Var

8. Which is a variable separator if more than one variable declared in one


statement?

(A), (B): (C) - (D) /

9. Which brackets is used to write array in Java script?

(A).Curve brackets (B).Square brackets (C).Curly bracket (D).Corner bracket


10. Which bracket is used to write object in java script?

(A).Curve bracket (B). Square bracket (C). Curly bracket (D). Corner bracket

11. What is the purpose module (%) operator in java script?

(A).Percentage value (B).Product value (C). Remainder value (D). Quotient value

12. How many part are there in ‘For’ loop?

(A). 2 (B). 3 (C).4 (D). 5

13. Which part in loop evaluates the conditions?

(A). Condition part (B). Increment/Decrement part (C). Initialization part


(D). Looping part

14. How many types of error are there in java script programming?

(A).3 (B). 4 (C).6 (D).8

15. How many different values can be returned the error name property in
JavaScript?

(A). 3 (B). 4 (C).5 (D).6

16. Which object method is used to return the value rounded down to its nearest
integer?

(A).abs () (B). Ceil () (C).floor () (D). Round ()

17. Which special variable holds more than one value at a time?

(A). Array (B). Element (C). Function (D). Object

18. Which function in java script converts a number to a string?

(A). Num () (B). STR () (C). String () (d). To string ()

19. Which function in java script converts a number to a string?

(A). Class (B). Name space (C). Object (D). Property


20. Which allows developers to bundle all functionality under a unique application
specific name?

(A).Trade. Sort: (B). Trade. Sort (): (C). Sort. Trade (): (D). Sort. (Trade):

21. What is a valid is code to sort element of an array trade?

(A).Browser object method (B). Browser object model

(C). Browser Oriented method (D). Browser oriented model

22. What is the full form of BOM?

(A). Text of content (B). Time of calculation (C). Table of content

(D). Terminator of content.

23. Which is the first phase of system development life cycle?

(A). Testing (B). Planning (C). Developing (D).Defining

24. What is the abbreviation of W3C in Dom?

(A). World Wide Web curriculum (B). World Wide Web consortium

(C). World Wide Web centre (D). World Wide Web center

LEVEL: 2

1. What is the main purpose of java script?


(A). Client side validation (B). Create web browsers
(C).Read and write files (D). Store data in the server

2. Which one is responding of running java script code?

(A). Browser (B). Notepad++ (C). Sublime text (D).Visual studio code

3. Which on enables the hosting providers to manage multiple domains on a


single server?

(A). Network server (B). SQl server (C). Web server (D). Database server
4. Which sign an ‘assignment’ operator in java script?

(A). = (B). # (C). = = (D). <>

5. Which data type in java script returns the value ‘TRUE ‘or ‘FALSE’?

(A).Boolean (B). Dynamic (C). Object (D). String

6. Which operator is used to check both value and type in JavaScript?

(A). # (B). = (C). == (D). ===

7. Which operator is used to check both value and type in JavaScript?

(A).a=5*9 (B).a=*5 (C).a*=5 (D).a=5

8. Which single character escape sequence represents “line feed” JavaScript?

(A).\b (B).\f (C).\n (D).\

9. What is the purpose of initialization part in “for” loop?

(A).exit the loop (B).evaluate the condition

(C).increase or decrease the initial variable (D).Initiate the variable

10. Which keyboard in switch case statement specifies the code to run if there is
no case match?

(A).Break (B). Case (C).Default (D).End

11. Which statement is used to test a block of code for errors?

(A).Catch (B).Finally (C).Throe (D).Try

12. Which statement is used to handle the error?

(A).Try (B).Catch (c).Throw (D).Finally

13. Which statement is used to execute code error in JavaScript?


(A).Catch (B).Finally (C).Throw (D).Try
14. Which statement is used create custom error in JavaScript?
(A).Finally (B). Syntax error (C).Throw (D).Type error
15. Which error indicates that the numbers is outside the range of legal
values?
(A).Range error (B).Reference error (c).type error (D).URL error

16. Which error indicates that the variable used is not declared?

(A).Eval error (B).Range error (C).Reference error (D).Syntax error


17. Which error indicates that the value is outside the range of expected type?
(A).Eval Error (B).Range Error (C). Syntax Error (D).Type Error

18. Which is used to access individual value in an array?

(A).Content number (B).Element number (C) Table number (D).Variable


number

19. What is the purpose of length property in array?

(A).Return number of array element

(B).Return number of characters

(c).Return number of field in object array

(D).return number of highest array index

20. Which method joins all array elements into string with specified separator?

(A).Join () (B).Pop () (C).Push () (D).To string ()

21. Which method removes the last elements from an array?

(A).Join () (B).Push () (C) Pop () (D).Shift ()

22. Which method is used to add new element to an array?

(A).Join () (B).Push () (C) Pop () (D).Shift ()

23. Which method removes the first array elements?


(A).Join () (B).Push () (C) Pop () (D).Shift ()

24. Which variable works as function argument in java script?

(A). Function variable (B). Global variable (C).Local variable (D).Object variable

25. Which variable declared outside a function in java script?

(A). Function variable (B). Global variable (C).Local variable (D).Object variable

26. Which feature in Java script has properties and method?

(A). Array (B).Function (C). Object (D).Controls

27. Which variable are deleted in Java script when the page is closed?

(A). Function variable (B). Global variable (C).Local variable (D).Object variable

28. Which method is called at the moment of instantiation of an object?

(A). Constructor (B). Inheritance (C).Polymorphism (D).Property

29. Which is an instance of class?

(A).Class (B).Name space (C).Object (D). Property

30. Which is window method is used to move the current window?

(A).Move () (B).Move to () (C).Window move () (D). Window. Move to ()

31. Which is property returns the width of the visitor’s screen in pixels?

(A).width () (B).Screen width () (C).Screen.Width () (D). Width. Screen ()

32. Which property returns the URL of the current page?

(A). href () (B). <Herf> (C). Location.herf (D). herf.Location

33. Which property is used to transfer files from one host to another host over
internet?

(A). IP (B).FTP (C).HTTP (D).SMTP


34. Which open source software is used to upload from client to server or
download?

(A).PHP (B).Perl (C).HTTP (D).FILEZILLA

LEVEL: 3

1. How will JavaScript treat a number, when if is enclosed with double or single
quotes?
(A). Error (B).Number (C).String (D). Zero

2. Which will be the output for the following JavaScript code?

(A). 16 (B).133 (C).1303 (D). 13 03

3. What will be the output, if the JavaScript code is executed?


Var X =1324;
Var Y = new Number (1324);
If (x===Y)
Alert (‘YES”)
Else
Alert (“NO”)
(A).Infinity (B). Error (C). No (D). Yes

4. What is the output of the following JavaScript code?


Var x =”ITI”;
Var Y= “GOVT”;
Var o =Y concat(x)
Document. Write (o);

(A).ITI GOVT (B).ITIGOVT (C).GOVTITI (D).GOVT ITI

5. Which is the output of the following JavaScript code?


Var name =”Kanya Kumari”;
Var x =name.substr (8, 2);
Document. Write (x);
(A).um (B). Ma (C). Ar (D).Ku

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy