Search Header Logo

Computational Thinking in Python[Quiz 2]

Authored by Karunya Hacks

Computers

University

Used 1+ times

Computational Thinking in Python[Quiz 2]
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the correct way to print Hello World

p(“Hello World”)

echo "Hello World"

echo ("Hello World")

print("Hello World")

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the correct method to do single line commenting

//This is a comment

#This is a comment

/*This is a comment

All of these

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Give the extension of a Python file

Python.p

Python.pth

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Give the name of a Python IDE

Eclipse

Spider

PyCharm

NetBeans

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In the declaration of a variable, which is the incorrect method

a = 5

a_1 = 5

4a = 5

_a_ = 5

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which is the correct method to declare a variable b with value as 5

b = int(5)

b = 5

All of the mentioned

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

There is an operation a**b. Which mathematical operation does it represent

Exponent[Power] Operation

Floor Division Operation

Multiplication

None of these

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?

Discover more resources for Computers