Skill Development - Debugging Practice1
Quiz
•
Computers
•
10th Grade - Professional Development
•
Hard
Maniraj Officer
Used 4+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the final value of x in the following C code?
#include <stdio.h>
void main()
{
int x = 5 * 9 / 3 + 9;
}
3.75
Depends on Compiler
24
3
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many times i value is checked in the following C program?
#include <stdio.h>
int main()
{
int i = 0;
while (i < 3)
i++;
printf("In while loop\n");
}
2
3
4
1
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of this C code?
#include <stdio.h>
main()
{
int n = 0, m = 0;
if (n > 0)
if (m > 0)
printf("True");
else
printf("False");
}
True
False
No Output will be Printed
Run Time Error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following C code?
#include <stdio.h>
int main()
{
int a = 1, b = 1, c;
c = a++ + b;
printf("%d, %d", a, b);
}
a = 1, b = 1
a = 2, b = 1
a = 1, b = 2
a = 2, b = 2
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following C# code?
int i, j = 1, k;
for (i = 0; i < 3; i++)
{
k = j++ - ++j;
Console.Write(k + " ");
}
-4 -2 -2
-6 -4 -1
-2 -2 -2
-4 -4 -4
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Find out the error, if any in the below program?
#include<stdio.h>
int main()
{
int i = 1;
switch(i)
{
case 1:
printf("Case1");
break;
case 1*2+2:
printf("Case2");
break;
}
return 0;
}
Error: in switch statement
Error: in case 1*2+4 statement
Error: No default specified
No Error
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following C# code?
struct abc
{
int i;
}
class Program
{
static void Main(string[] args)
{
abc x = new abc();
abc z;
x.i = 10;
z = x;
z.i = 15;
console.Writeline(x.i + " " + y.i)
}
}
10 10
10 15
15 10
15 15
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
10 questions
Jaringan Komputer / AIJ
Quiz
•
11th Grade
10 questions
Sistema Binario
Quiz
•
1st Grade - University
10 questions
SEjarah etika komputer
Quiz
•
12th Grade
10 questions
História e Evolução Sistemas Operativos Servidor
Quiz
•
11th Grade
12 questions
Cycle 4: Session 8 Review.
Quiz
•
Professional Development
10 questions
C++ Array Quiz
Quiz
•
University
14 questions
Оформлення текстових документів
Quiz
•
12th Grade
15 questions
quiz pertemuan 2 asik ddp
Quiz
•
University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
