

MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Computer Fundamentals knowledge and support exam preparation. Choose a topic below to get started.
1. |
What is the value of a[3] as the result of the following array declaration? |
A. | 2 |
B. | 1 |
C. | 4 |
D. | 3 |
Answer» D. 3 | |
2. |
In Java, 5/2 = |
A. | 2.5 |
B. | 2 |
C. | None of above |
D. | 3 |
Answer» B. 2 | |
3. |
Which of the following are primitive types? |
A. | String |
B. | byte |
C. | Float |
D. | integer |
Answer» C. Float | |
4. |
The name of a variable is known as its: |
A. | constant |
B. | identifier |
C. | base |
D. | data type |
Answer» C. base | |
5. |
The data type for numbers such as 3.14159 is: |
A. | int |
B. | Double |
C. | string |
D. | real |
Answer» C. string | |
6. |
Which of the following represent(s) of a hexadecimal number? |
A. | (hex) 5 |
B. | 570 |
C. | 0X5 |
D. | 0X9F |
Answer» D. 0X9F | |
7. |
If m and n are int type variables, what will be the result ofthe expressionm % nwhen m = 5 and n = 2? |
A. | 1 |
B. | 0 |
C. | None of above |
D. | 2 |
Answer» B. 0 | |