
C Programming Quiz
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
Arteng undefined
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the output of the following program void main() { int i; i=1; i=1+2*i++; printf("%d",i); }
3
5
6
4
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code considering the size of a short int is 2, char is 1 and int is 4 bytes?
#include
2, 1, 2
2, 1, 1
2, 1, 4
2, 2, 8
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following program?
#include
73 73
60 13
- 13 60
- 60 60
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following switch statement print if the character input is y? char c=’y’; scanf("%c",&c); switch( c ) { case ‘Y’: printf(“Yes/No”); case ‘N’: printf(“No/Yes); break; default: printf(“other”); }
Yes/NoNo/Yes
No/Yes
other
compilation error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following program
#include
1
0
error
garbage value
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following program
#include
10
20
30
1
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the program?
#include
-2, 3, 1, 1
2, 3, 1, 2
1, 2, 3, 1
3, 3, 1, 2
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
15 questions
untitled
Quiz
•
11th Grade - University
14 questions
ISTQB FOUNDATION 4.0 | Tutorial 41
Quiz
•
12th Grade
10 questions
Soal BAB V PemWeb
Quiz
•
12th Grade
11 questions
Découverte de Linux
Quiz
•
12th Grade
15 questions
Grade 12-Python selection&iteration
Quiz
•
11th - 12th Grade
14 questions
Kiểu dữ liệu xâu kí tự - xử lí xâu kí tự
Quiz
•
9th - 12th Grade
15 questions
Asesmen Sumatif
Quiz
•
12th Grade
13 questions
Python Fundamentals and Programming
Quiz
•
11th - 12th Grade
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
