
CODE4KITSW
Authored by VISHWANATH REDDY
Other
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
25 questions
Teori Ekonomi UTS
Quiz
•
University
25 questions
QUIS TPI: INSTRUMEN PENELITIAN - TRO 16B
Quiz
•
University
25 questions
Soal Uji Pemahaman BPJS
Quiz
•
University
25 questions
2.Sınıf Deneme Sınavı
Quiz
•
KG - University
28 questions
Lịch sử văn minh thế giới - Phần 4
Quiz
•
University
25 questions
Star Wars
Quiz
•
4th Grade - University
27 questions
Event Management
Quiz
•
10th Grade - University
25 questions
QUIZ PROMOSI
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 Other
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