CODE4KITSW

Quiz
•
Other
•
University
•
Medium
VISHWANATH REDDY
Used 2+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
#include <stdio.h>
int main() {
printf("Welcome to Code4KITSW!");
return 0;
}
What will be the output?
Welcome to Code4KITSW!
Welcome to Code4KITSW followed by a space
Compiler error
No output
2.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
Which of these is a valid C variable name?
2name
_varName
var-name
char
3.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
#include <stdio.h>
int main() {
int a = 7, b = 3;
printf("%d", a % b);
return 0;
}
What will this program print?
1
2
3
Compiler error
4.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
Which keyword is used to exit a loop prematurely?
break
continue
return
exit
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
#include <stdio.h>
int main() {
int x = 5;
printf("%d %d", x++, ++x);
return 0;
}
What is the output?
5 7
6 7
5 6
Undefined behavior
6.
MULTIPLE CHOICE QUESTION
10 sec • 10 pts
What is the default value of an uninitialized int variable?
0
1
Garbage value
Depends on compiler
7.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
#include <stdio.h>
int main() {
int x = 0;
if (x = 1)
printf("True");
else
printf("False");
return 0;
}
What is the output?
True
False
Compiler error
Undefined behavior
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
Tech quiz

Quiz
•
University
35 questions
TECHTRIX2025 BUGHUNT FINALS

Quiz
•
University
30 questions
CSC305 Topic 1 & 2

Quiz
•
University
25 questions
200-225 Algoritmdeu

Quiz
•
University
30 questions
Code Carrer 1st Year

Quiz
•
University
30 questions
Repaso C Cs50

Quiz
•
University
25 questions
Con trỏ

Quiz
•
University
30 questions
ICE1111 Revision

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade