Javascript Data Types MCQ

Computer Science and Engineering > JavaScript MCQ

Get a solid understanding of Javascript data types with this collection of MCQ questions. Test your knowledge and skills with multiple choice questions on primitive data types such as strings, numbers, and booleans, as well as complex data types like objects and arrays. Enhance your programming skills and improve your performance in technical interviews with these essential Javascript data type MCQs ➲ Javascript Data Types MCQ - Quiz


  • A String
  • B Array
  • C Boolean
  • D Number
  • A var str = new String("Hello World!");
  • B var str = String("Hello World!");
  • C var str = "Hello World!";
  • D var str = 'Hello World!';
  • A "number"
  • B "string"
  • C "boolean"
  • D "undefined"
  • A var num = 10;
  • B var num = Number(10);
  • C var num = new Number(10);
  • D var num = 10.5;
  • A true
  • B false
  • C "false"
  • D "true"
  • A number
  • B string
  • C boolean
  • D undefined
  • A 10
  • B 11
  • C "10"
  • D "11"
  • A "Hello 10"
  • B "10 Hello"
  • C "10"
  • D "Hello10Hello"
  • A 30
  • B "30"
  • C "1020"
  • D TypeError
  • A 2
  • B 5
  • C 10
  • D 24
  • A "hello"
  • B "HELLO"
  • C "Hello"
  • D TypeError
  • A 1
  • B 2
  • C 6
  • D 8
  • A true
  • B false
  • C "true"
  • D "false"
  • A true
  • B false
  • C "true"
  • D "false'
  • A true
  • B false
  • C "true"
  • D "false"
  • A object
  • B string
  • C number
  • D boolean
  • A greets the user by name
  • B calculates the area of a circle
  • C converts a string to uppercase
  • D checks if a string is a palindrome
  • A calculates the area of a circle
  • B converts a string to uppercase
  • C checks if a string is a palindrome
  • D sorts an array in ascending order
  • A calculates the area of a circle
  • B converts a string to uppercase
  • C checks if a string is a palindrome
  • D sorts an array in ascending order