#include<stdio.h>
int main()
{
int a = 5;
printf("%d"+1,a);
return 0;
}
c-debugging
Quiz
•
Other
•
University
•
Hard
c debugging 2k25
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int main()
{
int a = 5;
printf("%d"+1,a);
return 0;
}
Compilation error
Runtime error
6
d
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
#define FALSE -1
#define NULL 0
#define TRUE 1
int main(){
if(NULL)
printf("NULL");
else if(FALSE)
printf("TRUE");
else
printf("FALSE");
return 0;
}
FALSE
NULL
TRUE
COMPILATION ERROR
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int main(){
int i = 0, j = 1, k = 0;
if(++k, j, i++)
printf("%d %d %d", i, j, k);
return 0;
}
prints nothing
1 1 0
0 1 0
COMPILATION ERROR
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int main(){
int i;
if(true)
printf("This will work");
else
printf("This will not work");
return 0;
}
This will work
This will not work
Compilation Error
Runtime error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int x = -1;
int main(){
while(x++ == 1)
printf("loop");
return 0;
}
Prints nothing
LOOP
LOOP LOOP
LOOP LOOP LOOP
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
int main(){
int i = 5;
while(--i > 0)
printf("Loop ");
return 0;
}
Loop Loop Loop Loop
Loop Loop Loop Loop Loop
Loop Loop Loop Loop Loop LOOP
Infinite loop
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
#include<stdio.h>
#define loop for(;;)
int main()
{
printf("DONE");
loop;
return 0;
}
Compilation error
Done
Program never ends
None of the above
35 questions
2.2mo
Quiz
•
University
44 questions
C++ Conditional Statements
Quiz
•
University
40 questions
QUIZZ KJD - PERAWATAN, PERMASALAHAN DAN PERBAIKAN PC
Quiz
•
KG - Professional Dev...
44 questions
COLLECTION DISTRICTS
Quiz
•
University
40 questions
Instrumentasi Kelautan 4
Quiz
•
University
36 questions
Systems section 7
Quiz
•
University
44 questions
Basics of Python Programming
Quiz
•
University
40 questions
RIA Mock ver 3
Quiz
•
University - Professi...
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