Search Header Logo

Unit-1 Python Programming

Authored by THANGA R

Computers

University

Used 2+ times

Unit-1 Python Programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to declare a variable in Python?

int x = 10

x := 10

x = 10

declare x = 10

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid data type in Python?

integer

float

string

All of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of print(type(10))?

int

type int

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for exponentiation in Python?

^

**

exp()

^^

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the % operator do in Python?

Exponentiation

Division

Modulus

Floor division

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a logical operator in Python?

and

or

not

All of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of 10 // 3?

3.33

3

4

Error

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