Skill Development - Debugging Practice1
Quiz
•
Computers
•
10th Grade - Professional Development
•
Hard
Maniraj Officer
Used 4+ times
FREE Resource
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
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
15 questions
EDA PARTE 2
Quiz
•
University
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
10 questions
حاسب2 / اختبار الوحدة الثالثة
Quiz
•
10th - 12th Grade
10 questions
Pengenalan Perwakilan Data
Quiz
•
12th Grade
10 questions
Prova de Análise e Projeto de Sistemas
Quiz
•
Professional Development
10 questions
Sistemi e reti: CPU, von neumann
Quiz
•
12th Grade
10 questions
Post Test #4 - Python Fundamental #3
Quiz
•
University
10 questions
Memahami HTML
Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
