
BUG BLITZ
Authored by Navya T
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following code?
#include <stdio.h>
Int main() {
Char str[] = “Hello”;
Printf(“%s”, str + 1);
Return 0;
}
Hello
ello
H
He
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following code?
#include <stdio.h>
Int main() {
Int x = 0;
If (x == 0)
X = ((5, (x = 3)), x = 1);
Printf(“%d”, x);
Return 0;
}
5
3
1
Equal
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of this statement?
Printf(“%d”, (5, 10));
5
10
Error
None of the above
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does the following code output?
#include <stdio.h>
Int main() {
Char *str = “Hello”;
Printf(“%c”, *(str + 1));
Return 0;
}
H
e
l
o
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output of the following code?
#include <stdio.h>
Int main() {
Int a = 5, b = 10;
Printf(“%d”, a++ + ++b);
Return 0;
}
15
16
14
11
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
#include <stdio.h>
Int main()
{
Int I = 0;
Do
{
I++;
If (I == 2)
Continue;
Printf(“In while loop “);
} while (I < 2);
Printf(“%d\n”, i);
}
In while loop 2
Ini while loop in while loop 2
In while loop 3
Infinite loop
7.
MULTIPLE CHOICE QUESTION
20 sec • 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
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
20 questions
Python Recap
Quiz
•
7th Grade - University
20 questions
SECOND QUIZ
Quiz
•
University
18 questions
Programming in C language
Quiz
•
12th Grade - University
20 questions
STM 2013 : FORMATIF T3-FORM & REPORT
Quiz
•
University
20 questions
Chapter 3: Strategic Initiatives for implementing CA
Quiz
•
University
20 questions
LATIHAN DASAR HTML
Quiz
•
KG - University
20 questions
HCI - UCD
Quiz
•
University
16 questions
Python Basics
Quiz
•
KG - 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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