Search Header Logo

Pseudo_Codes_4

Authored by ROHINI UDI

Information Technology (IT)

Professional Development

Pseudo_Codes_4
AI

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

2 mins • 1 pt

Media Image

1. Consider the following recursive function used in an Infosys assessment. What will be the output for input values x = 4 and y = 3?

16

10

12

14

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

2. In an Infosys coding round, the following function was given. What would be its output for parameters a = 3 and b = 4?

12

5

20

15

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

3. A candidate was asked to analyze this code snippet in an Infosys interview. What will be the output if x = 5 and y = 3?

16

13

10

9

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

4. During an Infosys online assessment, the following code was presented. What will be printed if initial value of n = 16?

4

1

0

8

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

5. In an Infosys technical round, candidates were given this code. What's the output for a = 7?

16

11

18

14

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

6. The following bit manipulation code appeared in an Infosys test. What's the output for n = 42?

3

4

5

6

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

7. An Infosys interviewer asked about this pattern-generating code. What's printed for n = 4?

6 stars in a triangle
left-angled triangle

8 stars in a line

10 stars in a triangle
reverse triangle

10 stars in a triangle
right-angled triangle

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?