
C programming
Quiz
•
Professional Development
•
University
•
Practice Problem
•
Hard
Sumit Kumar
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 20 pts
What is the 16-bit compiler allowable range for integer constants?
-3.4e38 to 3.4e38
-32767 to 32768
-32668 to 32667
-32768 to 32767
Answer explanation
-32768 to 32767
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
main()
{printf("javatpoint");
main();}
Wrong statement
It will keep on printing javatpoint
It will Print javatpoint once
None of the these
Answer explanation
It will keep on printing javatpoint
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will this program print?
main()
{
int i = 2;
{
int i = 4, j = 5;
printf("%d %d", i, j);
}
printf("%d %d", i, j);
}
4525
2525
4545
None of these
Answer explanation
4525
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is a lint?
C compiler
Interactive debugger
Analyzing tool
C interpreter
Answer explanation
Analyzing tool
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of this statement "printf("%d", (a++))"?
The value of (a + 1)
The current value of a
Error message
Garbage
Answer explanation
The current value of a
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Study the following program:
main()
{
int a = 1, b = 2, c = 3:
printf("%d", a + = (a + = 3, 5, a))
}
What will be the output of this program?
6
9
12
8
Answer explanation
Answer: (d) 8
Explanation: It is an effect of the comma operator.
a + = (a + = 3, 5, a)
It first evaluates to "a + = 3" i.e. a = a + 3 then evaluate 5 and then evaluate "a".
Therefore, we will get the output is 4.
Then,
a + = 4
It gives 8 as the output.
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does this declaration mean?
int x : 4;
X is a four-digit integer.
X cannot be greater than a four-digit integer.
X is a four-bit integer.
None of the these
Answer explanation
X is a four-bit integer.
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?
Similar Resources on Wayground
18 questions
Physical assessment of the EENT
Quiz
•
University
18 questions
BCS Network Security Test 4
Quiz
•
University
20 questions
QUIZ 1 : TOPIC 8 [PROCESS COSTING]
Quiz
•
1st Grade - University
20 questions
Tidal Energy
Quiz
•
5th Grade - Professio...
20 questions
Nationalian-Final Period
Quiz
•
University
20 questions
Banking Quiz
Quiz
•
12th Grade - University
19 questions
Glaze Eduction
Quiz
•
1st Grade - University
20 questions
QL Khởi nghiệp- Thầy Phú
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Professional Development
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
