Pseudo code Practice 1

Pseudo code Practice 1

1st - 3rd Grade

10 Qs

quiz-placeholder

Similar activities

CSS Quiz

CSS Quiz

1st - 3rd Grade

10 Qs

QUIZ DE TECNOLOGÍA E INFORMÁTICA CICLO V (periodo 3)

QUIZ DE TECNOLOGÍA E INFORMÁTICA CICLO V (periodo 3)

1st - 12th Grade

10 Qs

Teknik Pemikiran Komputasional

Teknik Pemikiran Komputasional

2nd - 3rd Grade

10 Qs

Parts of a Computer

Parts of a Computer

1st - 2nd Grade

10 Qs

S2 Databases

S2 Databases

2nd Grade

15 Qs

C# lesson10

C# lesson10

1st - 10th Grade

10 Qs

Quiz sobre Funções em Programação

Quiz sobre Funções em Programação

2nd Grade

10 Qs

Занятие_07_08_05 (Scratch)

Занятие_07_08_05 (Scratch)

1st - 3rd Grade

15 Qs

Pseudo code Practice 1

Pseudo code Practice 1

Assessment

Quiz

Computers

1st - 3rd Grade

Practice Problem

Medium

Created by

prem sagar

Used 31+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the output of the following pseudocode?


Integer i

Set i = 3

do

print i + 3

i = i - 1

while(i not equals 0)

end while

5 5 5

Infinite loop

6 6 5

6 5 4

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What would be the output of the following pseudocode?


Integer a

String str1

Set str1 = “goose”

a = stringLength(str1)

Print (a ^ 1)


Note: ^ is XOR operator

5

3

4

0

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Consider an array A = {1, 2, 4, 5, 6, 11, 12} and a key which is equal to 10. How many comparisons would be done to find the key element in the array using the binary search?

5

3

1

2

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What would be the output of the following pseudocode?


Integer i, j, k

Set k = 8

for(each i from 1 to 1)

for(each j from the value of i to 1)

print k+1

end for

end for

8

7

9

2

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the output of the following pseudocode?


Integer a, b

Set a = 15, b = 7

a = a mod (a - 3)

b = b mod (b – 3)

a = a mod 1

b = b mod 1

Print a + b

0

2

7

15

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the output of the following pseudocode?

Integer a, b, c

Set b = 5, a = 2, c = 2

if(b>a && a>c && c>b)

b = a + 1

Else

a = b + 1

End if

Print a + b + c

5

26

13

2

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

For which of the following applications can you use hashing?


1. To construct a message authentication code.

2. For Timestamping

3. For detecting a cycle in a graph


Choose the correct answer from the options given below.

Only 1 and 3

Only 2 and 3

Only 1

Only 1 and 2

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers