#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
44 questions
C++ Conditional Statements
Quiz
•
University
39 questions
алгоритм модуль 1
Quiz
•
University
45 questions
INFORMATION AND COMMUNICATIONS TECHNOLOGY
Quiz
•
University
45 questions
Pemrograman dan Arduino IDE
Quiz
•
University
42 questions
Final Review
Quiz
•
University
40 questions
COMP 1010 TEST 1
Quiz
•
University
45 questions
Годовой тест по Python
Quiz
•
4th Grade - University
40 questions
Javascript - php - oop
Quiz
•
University
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade