...
NVS PGT CS 2017 Part-B
August 13, 2024
NVS PGT CS 2017 Part-B
August 13, 2024
NVS PGT CS 2017 Part-B
August 13, 2024
NVS PGT CS 2017 Part-B
August 13, 2024

NVS PGT CS 2017 Part-B

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.
A
Only statement 2 and statement 3 are true.
B
Only statement 1 and statement 3 are true.
C
Only statement 1 and statement 3 are true.
D
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.
Correct Answer: A
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.
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!