Search Header Logo

MCQ for Coding Carnival

Authored by Ranjith Kumar

Computers

University

Used 16+ times

MCQ for Coding Carnival
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lathika is curious about who developed the Python Programming Language. Can you help her find the right answer?

Wick van Rossum

Rasmus Lerdorf

Guido van Rossum

Niene Stom

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

>>>str1="helloworld"

>>>str1[::-1]

dlrowolleh

hello

world

helloworld

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

output for the program

prints all the even numbers between 1 and 20

prints all the odd numbers between 1 and 21

prints all the odd numbers between 1 and 20

prints all the even numbers between 1 and 21

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The equivalent of the above for loop using the while syntax would be

Media Image
Media Image
Media Image
Media Image

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

How many times will 1 be printed

5

3

4

7

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the order of precedence in Python?

i. Parenthesis

ii. Exponential

iii. Multiplication

iv. Division

v. Addition

vi. Subtraction

1,2,3,4,5,6

1,3,2,4,6,5

6,5,4,3,2,1

5,6,2,1,4,3

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

_______________is the example of comparison operator.

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?