
Quiz APr@5

Quiz
•
Computers
•
University
•
Hard
Sreedhar Yellam
Used 2+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the value of t if a = 56 , b = 876?
Function mul(a, b)
t = 0
while (b != 0)
t = t + a
b=b-1
End While
return t;
End Function
490563
49056
490561
None of the mentioned
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How many times the following loop be executed?
{
…
ch = ‘b’;
while(ch >= ‘a’ && ch <= ‘z’)
ch++;
}
0
25
26
27
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following pseudo code?
Input m=9,n=6
m=m+1
n=n-1
m=m+n
if (m>n)
print m
else
print n
6
5
10
15
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of this C code?
#include <stdio.h>
void main()
{
double k = 0;
for (k = 0.0; k < 3.0; k++)
printf("Hello");
}
Run time error
Hello is printed thrice
Hello is printed twice
Hello is printed infinitely
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int main()
{ int t=0;
for(;;)
{
if(t==10) break;
printf("%d ",++t);
}
return 0;
}
0 1 2 3 4 5 6 7 8 9 10
0 1 2 3 ... infinite times
1 2 3 4 5 6 7 8 9 10
1 2 3 4 5 6 7 8 9 1
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following pseudocode?
Integer p, q, r
set p=1, q=2, r=0
if (p < q )
p= p << 1
if ( p > q )
r= r << 1
end if
printf p + q + r
6
4
2
9
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following pseudocode?
Integer p, q, r
set p=1, q=1, r=1
if (0 | | 1 | | 1 )
p= p & 1
else
r = r & 1
end if
print p + q + r
18
-1
0
3
Create a free account and access millions of resources
Similar Resources on Wayground
28 questions
Algorithm and flow charts

Quiz
•
KG - Professional Dev...
28 questions
Swift Playground

Quiz
•
5th Grade - University
25 questions
midterm exam. compro (part2)

Quiz
•
University
25 questions
PYTHON CONTERST 3

Quiz
•
University
25 questions
Quiz Praktikum Dasar P Komputer

Quiz
•
University
25 questions
UTS Algoritma dan Pemrograman

Quiz
•
University
25 questions
Kelas XI Bab 2 : Strategi Algoritmik dan Pemprograman

Quiz
•
University
25 questions
PTS Informatika Kelas XI 2024

Quiz
•
11th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University