
Debugging
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Gopalakrishnan Palpandi
Used 2+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Question: What is the error?
#include <stdio.h>
int main() {
int arr[5] = {1, 2, 3, 4, 5};
for(int i = 0; i <= 5; i++) {
printf("%d ", arr[i]);
}
return 0;
}
Loop
Array
Print
Size
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the correct way to declare a variable of type integer in C?
int x;
integer x;
int x = int;
x int;
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Question: What is the error?
#include <stdio.h>
int main() {
int a = 5, b = 10;
int sum = a + b;
printf("Sum: %d", sum);
}
Sum
Return
Int
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which function is used to read input from the keyboard?
print()
getchar()
scanf()
input()
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Question: What is the error?
#include <stdio.h>
int main() {
int x = 10;
if(x = 5) {
printf("x is 5");
} else {
printf("x is not 5");
}
return 0;
}
If
Else
Declare
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is a valid identifier in C?
int number;
2ndNumber;
float number$;
_number;
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Question: What is the error?
#include <stdio.h>
int main() {
int x;
printf("Value of x: %d", x);
return 0;
}
Declare
init
Return
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
17 questions
Minggu V - PKS 2 - Pemrograman C++
Quiz
•
University
18 questions
C Language 101
Quiz
•
University
20 questions
BD 1 - SQL - geral
Quiz
•
University
15 questions
COMP_FUND_PROG-QUIZ #2
Quiz
•
University
20 questions
C++ Bootcamp 2k24
Quiz
•
University
15 questions
CIS1101-programming practice
Quiz
•
University
15 questions
07 - Map
Quiz
•
University
15 questions
Web Dev Midterm Quiz
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
