Pseudocode Test - 1

Pseudocode Test - 1

Professional Development

12 Qs

quiz-placeholder

Similar activities

Tipos de visibilidade e encapsulamento

Tipos de visibilidade e encapsulamento

Professional Development

10 Qs

CHFI-Post-Assessment

CHFI-Post-Assessment

Professional Development

10 Qs

Family Quizz

Family Quizz

5th Grade - Professional Development

15 Qs

Estrategias metodológicas

Estrategias metodológicas

Professional Development

10 Qs

Úng dụng công nghệ thông tin

Úng dụng công nghệ thông tin

Professional Development

10 Qs

Cycle 4: Session 8 Review.

Cycle 4: Session 8 Review.

Professional Development

12 Qs

paquetes contables  lección 1

paquetes contables lección 1

11th Grade - Professional Development

10 Qs

Cloud computing

Cloud computing

Professional Development

10 Qs

Pseudocode Test - 1

Pseudocode Test - 1

Assessment

Quiz

Computers

Professional Development

Hard

Created by

CodElevate Technologies

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the output of the following pseudocode for `a = 1, b = 1, c = 7`?   
Integer a, b, c

    Set a = 1, b = 1, c = 7

    a = a + b

    if(a + b)

        if(b + (c ^ a))

            a = 2

            b = a

    End if

    End if

    Print a + b + c

8

9

10

11

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following pseudocode for `a = 5, b = 3`?

 

    Integer calculate(Integer a, Integer b)

    Integer result

    result = a << 1

    result = result | b

    return result

    End function calculate()

13

11

15

10

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will be the output of the following pseudocode for `a = 3, b = 4, c = 5`?

    Integer a, b, c

    Set a = 3, b = 4, c = 5

    a = a * b

    if(a - b)

        if(b - (c ^ a))

            a = 2

            b = a

    End if

    End if

    Print a + b + c

12

15

9

25

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following pseudocode for `a = 2, b = 3`?

 

    Integer calculate(Integer a, Integer b)

    Integer result

    result = a >> 1

    result = result ^ b

    return result

    End function calculate()

1

3

5

2

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the result of the following pseudocode for `a = 5, b = 8`?

 

     Integer performOperation(Integer a, Integer b)

    Integer result

    result = (a & b) | (a ^ b)

    return result

    End function performOperation()

13

8

5

0

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Int a,b,c

Set a=1    b=7    c=13

c=(b+1)^a

a=(5&2)&c

a=(b+7)+b

Print a+b+c

33

35

37

39

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

How many time hello printed

Set k=1, p=4

int j=p+k/2

if (j equals p)

  print "hello"

end if

j=p+k/5

if(j not equals p)

  print "hello"

end if

  print "hello"

2

3

4

1

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?