#include <stdio.h>
int main() {
printf("Welcome to Code4KITSW!");
return 0;
}
What will be the output?
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
25 questions
Разработка приложений в C# 1 аттестация
Quiz
•
University
30 questions
CSC305 Topic 1 & 2
Quiz
•
University
25 questions
200-225 Algoritmdeu
Quiz
•
University
32 questions
C# Skill Review
Quiz
•
12th Grade - Professi...
25 questions
C++ Basics
Quiz
•
University
30 questions
Repaso C Cs50
Quiz
•
University
25 questions
Con trỏ
Quiz
•
University
30 questions
Webathan
Quiz
•
University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade