Search Header Logo

PPS_Activity_Z2_Kiruthika M

Authored by Kiruthika M

Computers

University

Used 2+ times

PPS_Activity_Z2_Kiruthika M
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

16 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

  1. What is the output of the following code?

int a = 5, b = 2;

printf("%d", a++ + ++b);

7

8

9

10

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

Guess the output of the following code:

1.500000 2.500000

1.500000 2.500000 3.500000

0.000000 0.000000 0.000000

No output

3.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Reorder to form a correct C program that prints “Hello”

a) printf("Hello");
b) #include <stdio.h>
c) int main() {
d) return 0;
e) }

b → c → a → e→ d

b → c → a → d → e

c → b → a → d → e

a → c → b → d → e

4.

MULTIPLE CHOICE QUESTION

1 min • 4 pts

Media Image

Match the keywords with its meaning

1-b, 2-a, 3-c, 4-d

1-a, 2-b, 3-c, 4-d

1-d, 2-a, 3-d, 4-c

1-d, 2-c, 3-b, 4-a

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is NOT a key characteristic of an algorithm?

Finiteness

Definiteness

Ambiguity

Effectiveness

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Pseudocode is primarily used to ___ the logic of an algorithm before writing actual code.

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

The ________ keyword indicates that the variable value cannot be changed.

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?