Question 56
Which of the following is NOT an Abstract Data Type (ADT)?
Stack, Queue, and List are ADTs; primitive Integer is a fundamental hardware-level concrete data type.
Which of the following is NOT an Abstract Data Type (ADT)?
Stack, Queue, and List are ADTs; primitive Integer is a fundamental hardware-level concrete data type.
What is the evaluation of Boolean expression: !(5 > 3 && 2 == 4) in C/C++?
(5 > 3) is True (1); (2 == 4) is False (0); (True && False) evaluates to False (0); !(False) evaluates to True (1).
Among arithmetic operators (*, /, %), which one has the highest precedence in C, C++, and Python?
Multiplication (*), Division (/), and Modulus (%) share the same operator precedence level, evaluated left-to-right.
Which statement allows multi-way branch selection based on the value of an integer or character expression in C and C++?
The switch-case statement transfers control to one of several case labels based on integer/char expression matching.
The symbol '>=' in C, C++, Java, and Python is a/an -
>= (Greater than or equal to) is a relational comparison operator returning boolean true or false.