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
29 questions
Examen de Programación

Quiz
•
University
28 questions
MINDZONE - 4.1

Quiz
•
University
25 questions
Python-Week7

Quiz
•
University
25 questions
Programación Básica de Arduino

Quiz
•
University
25 questions
C Programming

Quiz
•
12th Grade - University
30 questions
Ôn Thi FINAL EXAM môn PRF192

Quiz
•
University
25 questions
ROUND1

Quiz
•
University
25 questions
round 2

Quiz
•
University
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
Discover more resources for Other
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University