Search Header Logo

C & Python Programming Quiz

Authored by Jeeva L

Information Technology (IT)

University

Used 3+ times

C  & Python Programming Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Consider the code (in Image). What will be the output?

Two

TwoThreeDefault

ThreeDefault

Compilation error

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In C, what does sizeof("hello") evaluate to?

5

6

Depends on compiler

4

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Consider the code (Image). What will be printed?

A

B

C

Undefined

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Evaluate the output of this program (in Image)

6

1

3

0

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What kind of error occurs in this code?

Compile-time error

Runtime-time error

Index out of bounds

3

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What is the output of this loop?

5 4 3 2 1

4 3 2 1 0

5 4 3 2 1 0

Compilation error

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

How many lines are printed by this code?

2

3

4

5

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?