What will be the output of the following Pseudo code?
int p=4, q=7, r=10
p=q mod r
q=q+p
r=r+q
print p, q and r
Pseudo Code
Quiz
•
Computers
•
1st - 3rd Grade
•
Hard
prem sagar
Used 45+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the following Pseudo code?
int p=4, q=7, r=10
p=q mod r
q=q+p
r=r+q
print p, q and r
7 14 24
7 11 17
7 14 21
4 11 17
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What will be the output of the following algorithm for Num = 10?
Start
Declare variable I, J and Num
Enter Value of Num
Repeat for I=1 to Num
Declare static variable sap and Set sap=0
sap=sap+I
J=sap
end loop
Print j
Stop
85
55
75
65
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Predict the output of the following pseudo code?
integer a = 2, b = 50;
a=a+b;
b=a-b;
print a;
print b;
2 52
2 50
52 2
52 48
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
const char* p = "12345";
const char **q = &p;
*q = "abcde";
const char *s = ++p;
What will be the vale of *++s?
abc
bcd
cde
de
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
a[][3] = {1, 2, 3, 4, 5, 6}
(*ptr)[3] = a
print (*ptr)[1], (*ptr)[2])
++ptr
print (*ptr)[1], (*ptr)[2])
What is printed as the output?
2 3 5 6
2 3 4 5
4 5 0 0
4 5 8 6
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
a=1;
b=1;
while(a<=500)
begin
a=2^a;
b=b+1;
end
What is the value of b at the end of the Pseudo code?
Note: ^ read it as 2 to the power of a
7
5
4
6
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
How many times will the following loop get executed?
for x = 5 to 1
for y = 1 to x
print y
11
15
12
14
10 questions
6 сынып PYTHON тілінде программалау
Quiz
•
1st Grade
10 questions
Q3 ADT ArrayList
Quiz
•
1st Grade
15 questions
Keyboard Unit Test
Quiz
•
2nd - 6th Grade
10 questions
2022年第二届苏州软件比武大赛—热身题
Quiz
•
2nd Grade
8 questions
USEFUL COMPUTER SHORTCUTS
Quiz
•
3rd - 4th Grade
10 questions
Python Quiz-1
Quiz
•
1st - 3rd Grade
15 questions
Microsoft Word
Quiz
•
3rd Grade
10 questions
Hardware and Software
Quiz
•
3rd - 4th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
14 questions
IREAD-3 Practice Test
Quiz
•
3rd Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Perimeter of Polygons!
Quiz
•
3rd Grade
10 questions
2nd Grade math review
Quiz
•
2nd Grade
20 questions
Math Review
Quiz
•
3rd Grade
18 questions
Traits
Quiz
•
3rd Grade
16 questions
Chapter 8 - Getting Along with your Supervisor
Quiz
•
3rd Grade - Professio...