
Quiz APr@5
Authored by Sreedhar Yellam
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
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
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
25 questions
Python Module 1
Quiz
•
University
25 questions
PYTHON CONTEST
Quiz
•
University
25 questions
Topik 3 - Computer Network Maintenance
Quiz
•
12th Grade - University
25 questions
SQL MIDTERM EXAM
Quiz
•
University
25 questions
Human and Computer Interaction Part 2
Quiz
•
University - Professi...
34 questions
Computer Classification
Quiz
•
University
25 questions
TechZoom24-BugBash_Prelims
Quiz
•
University
25 questions
Web Application Frameworks
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University