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
Conditional Logic

Quiz
•
9th Grade - University
25 questions
Introduction to Python and Data Analytics Basics

Quiz
•
University
27 questions
PSAJ PEMESINAN NONKONVENSIONAL

Quiz
•
12th Grade - University
30 questions
Examen de Programación

Quiz
•
University
27 questions
IAR-ETAPA 1 DRA. GMS

Quiz
•
University
25 questions
UNIT - 3 B Intermediate Code Generation Quiz

Quiz
•
University
30 questions
unit-1_CD

Quiz
•
University
25 questions
Histologija-nervno tkivo i nervni sistem

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University