
C_Basic_MCQ_2
Authored by Dinesh Kushwaha
Information Technology (IT)
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following data type will throw an error on modulus operation(%)?
char
short
int
float
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following C code?
15
16
15.6
10
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following C code?
Syntax error
1
10
5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the final value of x in the following C code?
3.75
Depends on compiler
24
3
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following C code?
Value of x is 1
Value of x is 2
Value of x is 3
Compile time error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of logical or relational expression in C?
True or False
0 or 1
0 if an expression is false and any positive number if an expression is true
None of the mentioned
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the size of an int data type?
4 Bytes
8 Bytes
Depends on the system/compiler
Cannot be determined
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?