
C Programming Quiz

Quiz
•
Computers
•
12th Grade
•
Hard
Arteng undefined
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Quiz - 10 on switch in C

Quiz
•
12th Grade
15 questions
Programming Quiz 1-3 | LPE-101 by Mettle X

Quiz
•
9th - 12th Grade
15 questions
กลางภาค ภาษาซี

Quiz
•
9th - 12th Grade
15 questions
Quiz on Intro to Linux

Quiz
•
12th Grade - University
10 questions
AP CSA Unit 1 & 2 Review

Quiz
•
9th - 12th Grade
10 questions
python

Quiz
•
9th - 12th Grade
12 questions
Topic 1 C++ Programming

Quiz
•
12th Grade
10 questions
C# Programming 2

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade