Search Header Logo

PYTHON UNIT I MCQS

Authored by MS.SHYAMALADEVI C

Computers

University

Used 3+ times

PYTHON UNIT I MCQS
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

30 sec • 1 pt

Which of the following is a feature of Python?

Strongly typed language

Static typing

Interpreted language

Compiler-based language

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you run a Python script from the command line?

python script.py

execute script.py

start script.py

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid identifier in Python?

1variable

variable_1

global

break

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a reserved keyword in Python?

for

while

if

all of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you define a variable in Python?

var x = 5

x = 5

int x = 5

variable x = 5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of comments in Python?

They are used to improve the performance of the code.

They are used to make the code run faster.

They are used to explain the code and make it more readable.

They are used to add extra functionality to the code.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which symbol is used for indentation in Python?

Spaces

Tabs

Both spaces and tabs

None of the above

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