MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Stack is a Primitive data type
A
True
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Examples of non-primitive data structure are Array, Linked list, stack. Primitive data structure will contain some value, i.e., it cannot be NULL.

Detailed explanation-2: -Array, Linked List, Stack, etc. are some examples of non-primitive data structures.

Detailed explanation-3: -Examples of non-primitive types are Strings, Arrays, Classes, Interface, etc.

Detailed explanation-4: -Primitive data types-includes byte, short, int, long, float, double, boolean and char. Non-primitive data types-such as String, Arrays and Classes (you will learn more about these in a later chapter)

Detailed explanation-5: -Primitive Data Types. The eight primitives defined in Java are int, byte, short, long, float, double, boolean and char. These aren’t considered objects and represent raw values. They’re stored directly on the stack (check out this article for more information about memory management in Java).

There is 1 question to complete.