
ZimZam
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
Vamsi Abhi
Used 3+ times
FREE Resource
Enhance your content in a minute
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the value of s, if n=127?
Read n
i=0,s=0
Function Sample(int n)
while(n>0)
r=n%10
p=8^i
s=s+p*r
i++
n=n/10
End While
Return s;
End Function
27
127
187
87
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output if limit = 3?
Read limit
n1 = 0, n2= 1, n3=1, count = 1;
while count <= limit
count=count+1
print n3
n3 = n1 + n2
n1 = n2
n2 = n3
End While
113
112
111
123
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the value of s if N=3?
Read N
Function sample(N)
s = 0
f = 1
i = 1
while i <= N:
f = f * i
s = s +(i / f)
i+=1
End while
return(s);
End Function
1
2
3
4
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Read 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
49095
49055
49056
49099
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Read number = 2630
Function divisible(number)
even_counter = 0
num_remainder = number
while (num_remainder)
digit = num_remainder % 10
if digit != 0 AND number % digit == 0
even_counter = even_counter + 1
end if
num_remainder = num_remainder / 10
end while
return even_counter
End Function
1
11
2
22
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following pseudocode for input a = 30, b = 60, C = 90?
Integer a, b, c, sum
Read a, b, c
Set sum = a + b + c
if ((sum EQUALS 180) and (a NOT EQUALS 0) and (b NOT EQUALS 0) and (c NOT EQUALS 0))
Print " Success"
Otherwise
Print "Fail"
End if
Fail
Success
Error
None
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be the output of the following pseudocode for a = 9, b = 7?
Integer funn(Integer a, Integer b)
Integer c
Set c = 2
b = b mod c
a = a mod c
return a + b
End function funn()
4
2
3
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
Ktra thường xuyên Tin 11
Quiz
•
11th Grade - University
20 questions
Pre parcial 1
Quiz
•
University
20 questions
BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON
Quiz
•
10th Grade - University
21 questions
7-PAS Scratch
Quiz
•
7th Grade - University
20 questions
quiziz 4 sumber media 2sda5
Quiz
•
University
20 questions
computer vision Quiz
Quiz
•
University
20 questions
Informatika
Quiz
•
8th Grade - University
20 questions
Quizz Informatika Analisis Data Kelas 9
Quiz
•
9th Grade - 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
