
c-debugging
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
c debugging 2k25
FREE Resource
Enhance your content in a minute
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
38 questions
MIDTERM - PRE TEST
Quiz
•
University
40 questions
Kuis Robotika
Quiz
•
University
39 questions
CRIJ 3304 ch 3-4 EXAM 2
Quiz
•
University
43 questions
Characteristics of Connected Speech
Quiz
•
University
43 questions
Environmental Management Finals
Quiz
•
University
40 questions
Exam-ITIL V4
Quiz
•
University
40 questions
INSTRUMENT (BASIC) ชุดที่ 2
Quiz
•
University
35 questions
Technerd 5.O
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
