
MCQ in programming
Authored by Rema m
English
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The statement char ch = ‘Z’ would store in ch :
The character Z
ASCII value of Z
Z along with the single inverted commas
Both (A) and (B)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a character constant?
‘Thank You’
‘Enter values of P, N, R’
‘23.56E-03’
All the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
. The maximum value that an integer constant can have is .................
-32767
32767
1.7014e+38
–1.7014e+38
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statement is wrong ?
mes = 123.56;
con = 'T' * 'A';
this = 'T' * 20;
3 + a = b;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following shows the correct hierarchy of arithmetic operators in C++ ?
**, * or /, + or -
**, *, /, +, -
**, /, *, +, -
/ or *, - or +
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a is an integer variable, a = 5/2; will return a value
2.5
3
2
0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The name of the variables, functions, labels and other user defined object are called .................
expression
identifier
pointer
statement
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?