PYTHON UNIT I MCQS

PYTHON UNIT I MCQS

University

15 Qs

quiz-placeholder

Similar activities

WML & WAP

WML & WAP

University

20 Qs

INTO Artificial Intelligence

INTO Artificial Intelligence

University - Professional Development

10 Qs

ITF Chapter 1 Computing Devices

ITF Chapter 1 Computing Devices

University

14 Qs

Software Engineering Quiz 1

Software Engineering Quiz 1

University

20 Qs

Machine Learning (Introduction)

Machine Learning (Introduction)

University

10 Qs

Determining System Requirements

Determining System Requirements

University

11 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

CIS2303 Week 4_5 Ch_3

CIS2303 Week 4_5 Ch_3

University

18 Qs

PYTHON UNIT I MCQS

PYTHON UNIT I MCQS

Assessment

Quiz

Computers

University

Hard

Created by

MS.SHYAMALADEVI C

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?