JavaScript Class 11 MCQ

Teachers and Examiners (CBSESkillEduction) collaborated to create the JavaScript Class 11 MCQ. All the important Information are taken from the NCERT Textbook Web Application (803) class 11.

JavaScript Class 11 MCQ

1. JavaScript was developed in 1995 by Brendan Eich, at Netscape, and first released with __________.
a. Netscape
b. Chrome
c. Safari
d. Internet Explorer

Show Answer ⟶
a. Netscape

2. JavaScript is an ____________ computer programming language.
a. Compiler
b. Interpreter
c. Assembler
d. None of the above

Show Answer ⟶
b. Interpreter

3. Which of the following features belong to JavaScript.
a. Browser Support
b. Client and Server-side Support
c. Functional Programming Language
d. All of the above

Show Answer ⟶
d. All of the above

4. With the help of JavaScript we can create ___________.
a. Cookies
b. Web Application
c. Multimedia element
d. All of the above

Show Answer ⟶
d. All of the above

5. JavaScript is a __________ Language.
a. Client Side
b. Server Side
c. Both a) and b)
d. None of the above

Show Answer ⟶
c. Both a) and b)

6. JavaScript is not used to _________ the files on client machines.
a. Read
b. Write
c. Both a) and b)
d. None of the above

Show Answer ⟶
c. Both a) and b)

7. JavaScript is ____________ programming language.
a. Procedure Oriented Programming Language
b. Object Oriented Programming Language
c. Both a) and b)
d. None of the above

Show Answer ⟶
b. Object Oriented Programming Language

8. A __________ is an application program with a graphical user interface for displaying HTML files, used to navigate the World Wide Web file.
a. Browser
b. Web Application
c. Website
d. None of the above

Show Answer ⟶
a. Browser

9. _________ between words and tabs are ignored by the Browser.
a. White Space
b. Black Space
c. No Space
d. None of the above

Show Answer ⟶
a. White Space

10. Variables in JavaScript can be defined using the ___________ keyword
a. Variant
b. Var
c. Variable
d. None of the above

Show Answer ⟶
b. Var

11. JavaScript is supported by_____________.
a. Netscape
b. Opera
c. Chrome
d. All of the above

Show Answer ⟶
d. All of the above

12. &&, ||, ! are example of
a. Arithmetic Operator
b. Logical Operator
c. Bitwise Operator
d. Assignment Operator

Show Answer ⟶
b. Logical Operator

13. Which one is the following statement is known as Control Structure
a. if Statement
b. else if statement
c. switch statement
d. All of the above

Show Answer ⟶
d. All of the above

14. DOM Stands for
a. Document Object Model
b. Digital Operation Machine
c. Document Observe Module
d. Document Option Module

Show Answer ⟶
a. Document Object Model

15. ______________ can contain the data from the user.
a. Variable
b. Statement
c. Keyword
d. Operator

Show Answer ⟶
a. Variable

16. ________________ tag tells the browser about the scripting language.
a. <Script>
b. <HTML>
c. <Language>
d. <JavaScript>

Show Answer ⟶
a. Script

17. _____________ is used to convert string to integer value.
a. Integer()
b. ParseInt()
c. parseInt()
d. Stringtoint()

Show Answer ⟶
c. parseInt()

18. A ______________ is a classification of the type of data that a variable or object can hold.
a. Datatype
b. Constant
c. Unary
d. None of the above

Show Answer ⟶
a. Datatype

19. Sequence of character is known as ______________.
a. Number
b. Character
c. String
d. None of the above

Show Answer ⟶
c. String

20. Compression takes place using the ______________ operator.
a. =
b. ==
c. ===
d. <>

Show Answer ⟶
b. ==

21. _________ Method is used to find the length of the string.
a. length
b. concat()
c. length()
d. search()

Show Answer ⟶
c. length()

22. Extension of JavaScript files is ________.
a. .html
b. .js
c. .jsc
d. .java

Show Answer ⟶
d. .java

23. Output of the following would be parseInt(“022”)
a. 3
b. 9
c. 22
d. 2

Show Answer ⟶
c. 22

24. JavaScript Support _____________ Environment.
a. Run-Time Environment
b. Off-Time Environment
c. Digital Environment
d. All of the above

Show Answer ⟶
a. Run-Time Environment

25. Limitations of Static website
a. It has limited functionality
b. It can cost more to upgrade
c. It is less attractive and interactive
d. All of the above

Show Answer ⟶
d. All of the above

26. The script tag must be placed in
a. Head
b. Head and body
c. Title and head
d. All of the mentioned

Show Answer ⟶
d. All of the mentioned

27. Which of the following is correct about features of JavaScript?
a. JavaScript is a lightweight, interpreted programming language.
b. JavaScript is designed for creating network-centric applications.
c. JavaScript is complementary to and integrated with Java.
d. All of the above

Show Answer ⟶
d. All of the above

28. Which built-in method returns the calling string value converted to lowercase?
a. toLowerCase()
b. toLower()
c. changeCase(case)
d. None of the above

Show Answer ⟶
a. toLowerCase()

29. Which of the following functions of Array object sorts the elements of an array?
a. toSource()
b. sort()
c. toString()
d. unshift()

Show Answer ⟶
b. sort()

30. What will happen, if the following JavaScript code is executed?
var count =0;
while (count <10)
{
console.log(count);
count++;
}
a. An error is displayed
b. An exception is thrown
c. The values of count variable are logged or stored in a particular location or storage
d. The value of count from 0 to 9 is displayed in the console

Show Answer ⟶
c. The values of count variable are logged or stored in a particular location or storage

31. Which of the following is the correct output for the following JavaScript code:
int x=8;
if(x>9)
{
document.write(9);
}
else
{
document.write(x);
}
a. 9
b. 0
c. 8
d. Undefined

Show Answer ⟶
c. 8

32. JavaScript was originally implemented as part of a web browser so that ___________ scripts could interact with the user.
a. Client-side
b. Dynamic Side
c. Web Side
d. None of the above

Show Answer ⟶
a. Client-side

33. JavaScript was formalized in the ___________ Script Language.
a. WCAM
b. CAMW
c. ECMA
d. CCMM

Show Answer ⟶
c. ECMA

34. A JavaScript function can accept ____________ and can also return a value.
a. Parameter
b. Function
c. Object
d. Binary data

Show Answer ⟶
a. Parameter

35. JavaScript is officially managed by ___________ Foundation.
a. Chrome
b. Mozilla
c. Netscape Navigator
d. Opera

Show Answer ⟶
b. Mozilla

36. Each line of JavaScript code ends with a _____________
a. Dot
b. Underscore
c. Semicolon
d. Colon

Show Answer ⟶
c. Semicolon

37. ____________ called Bitwise AND operator in JavaScript.
a. &
b. I
c. ^
d. ~

Show Answer ⟶
a. &

38. Which company developed JavaScript?
a. Netscape
b. Bell Labs
c. Sun Microsystems
d. IBM

Show Answer ⟶
a. Netscape

39. Which of the following is the correct syntax to display “Letsfindcourse” in an alert box using
JavaScript?
a. alert-box(“Letsfindcourse”);
b. confirm(“Letsfindcourse”);
c. msgbox(“Letsfindcourse”);
d. alert(“Letsfindcourse”);

Show Answer ⟶
d. alert(“Letsfindcourse”);

40. JavaScript is designed for following purpose –
a. to style HTML pages
b. to execute Queries related to databases on a server
c. to add interactivity to html pages
d. All of the above

Show Answer ⟶
d. All of the above

41. What will be the output of the following JavaScript code?
var string1 = “Letsfindcourse”;
var intvalue = 30;
alert( string1 + intvalue );
a. Letsfindcourse 30
b. 30
c. Letsfindcourse30
d. Exception

Show Answer ⟶
c. Letsfindcourse30

42. What are the three important manipulations done in a for loop on a loop variable in
JavaScript?
a. the initialization, the condition and the Incrimination
b. the initialization, the test
c. the initialization, the test, and Incrimination
d. All of the above

Show Answer ⟶
a. the initialization, the condition and the Incrimination

43. Which of them are not the looping structures in JavaScript?
a. for
b. while
c. forwhich
d. do-while

Show Answer ⟶
c. forwhich

44. Find output of below code
var a = ’20’;
var b = a = 30;
document.write(a+b);
a. Error in Script
b. ’20’30
c. 2030
d. 50

Show Answer ⟶
c. 2030

45. In JavaScript the x===y statement implies that:
a. Both x and y are equal in value, type and reference address as well.
b. Both x and y are equal in value only.
c. Both are equal in the value and data type.
d. Both are not the same at all.

Show Answer ⟶
c. Both are equal in the value and data type.

46. Numbers in JavaScript are double-precision ______________ format.
a. 32-bit
b. 64-bit
c. 128-bit
d. Null

Show Answer ⟶
b. 64-bit

47. A ______________ is a classification of the type of data that a variable or object can hold.
a. Data type
b. Variable
c. Constant
d. Variant

Show Answer ⟶
a. Data type

48. We can parse floating point numbers using the built-in _____________ function.
a. parseFloat()
b. parseInt()
c. parseString()
d. None of the above

Show Answer ⟶
a. parseFloat()

49. String in JavaScript are sequences of characters, each character represented by a _________ number.
a. 32-bit
b. 64-bit
c. 8-bit
d. 16-bit

Show Answer ⟶
d. 16-bit

50. In JavaScript ___________ loop execute at least one time
a. For
b. While
c. Do-While
d. Go-To

Show Answer ⟶
c. Do-While

51. ___________ statement is use to terminate the execution of a looping statement.
a. End
b. Break
c. Stop
d. Null

Show Answer ⟶
b. Break

Employability Skills Class 11 Notes

Employability Skills Class 11 MCQ

Employability Skills Class 11 Questions and Answers

Web Application Class 11 Notes

Web Application Class 11 MCQ

Web Application Class 11 Questions and Answers

error: Content is protected !!