Question 1

Time: 00:00:00

What will be the output of the following pseudo code ?


Integer a, b, c

Set a=-1, b=10, c=20

if(a)

Print b

else
Print c

end if

10

10

20

20

No output

No output

Garbage Value

Garbage Value

Question 2

Time: 00:00:00
Which of the following is used to close the If block in pseudocodes ?

Else

Else

Ends  

Ends  

End if

End if

Else if

Else if

Question 3

Time: 00:00:00
Can we use curly braces for the Loops in Pseudocodes ?

True

True

False

False

Question 4

Time: 00:00:00
Guess the output.


Integer a, b, c

Set a=10, b=2

c = a<<b

Print c

10

10

4

4

40

40

None of the mentioned

None of the mentioned

Question 5

Time: 00:00:00
What will be the output of the following pseudo code?
Integer x, y

Set x=10

y = x++

Print x

Pint y

10 10

10 10

10 Garbage

10 Garbage

11 11

11 11

10 11

10 11

Question 6

Time: 00:00:00
Choose the correct output of the following pseudo code.
Integer a, b, c

Set a = 10, b = 20

a = b = c = 30

Print a

10

10

20

20

30

30

Error

Error

Question 7

Time: 00:00:00
What will be the value of c after the execution of the following pseudo code?
Integer a, b, c

Set a=8, b=8

c = a^b

7

7

8

8

None of the mentioned

None of the mentioned

Zero

Zero

Question 8

Time: 00:00:00
Guess the output.
Integer a, b, c

Set a=10, b=2

c = a>>b

Print c

2

2

4

4

2.5

2.5

None of the mentioned

None of the mentioned

Question 9

Time: 00:00:00
What will be the output of the following?
Integer c, n

Set c=5, n=10

do

  n /= c

While(c--)

End loop

Print(n)

1

1

Error

Error

Infinite Loop

Infinite Loop

Question 10

Time: 00:00:00
Guess The output of the following code.
Integer x, y, z

Set x=10, y=2

x=x/y

z=x<<y

Print z

10

10

1

1

20

20

40

40

null
null

Personalized Analytics only Availble for Logged in users

Analytics below shows your performance in various Mocks on PrepInsta

Your average Analytics for this Quiz

Rank

-

Percentile

0%

Get over 200+ Courses under One Subscription

mute

Don’t settle Learn from the Best with PrepInsta Prime Subscription

Learn from Top 1%

One Subscription, For Everything

The new cool way of learning and upskilling -

Limitless Learning

One Subscription access everything

Job Assistance

Get Access to PrepInsta Prime

Top Faculty

from FAANG/IITs/TOP MNC's

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others.