Python Phase 1

Python Phase 1

University

•

30 Qs

quiz-placeholder

Similar activities

KIBAGENGE C.SCHOOL SCIENCE AND TECHNOLOGY GRADE 4 END TERM 2025.

KIBAGENGE C.SCHOOL SCIENCE AND TECHNOLOGY GRADE 4 END TERM 2025.

4th Grade - University

•

26 Qs

Dams: The Impact and Function

Dams: The Impact and Function

10th Grade - University

•

26 Qs

Hackharbor 3.0 : Day 5 API and JSON Quiz

Hackharbor 3.0 : Day 5 API and JSON Quiz

University

•

27 Qs

Symposium Round 1

Symposium Round 1

University

•

31 Qs

Coal Exploration

Coal Exploration

University

•

26 Qs

Understanding Python Data Types

Understanding Python Data Types

12th Grade - University

•

26 Qs

Python Phase 1

Python Phase 1

Assessment

Quiz

•

Engineering

•

University

•

Practice Problem

•

Medium

Created by

Data Science undefined

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following variable names is invalid in Python?

data_value

3data

_data

DataValue

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is NOT a keyword in Python?

  • pass

break

def

  • print

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

  1. What is the data type of the following variable?


<class 'int'>, <class 'int'>

  • <class 'str'>, <class 'int'>

  • <class 'str'>, <class 'str'>

  • <class 'int'>, <class 'str'>

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be the output of the following code snippet?

3, 3

3, 3.33

  1. 3, 3.0

Error

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the result of the following expression?

7

8

5

6

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

  1. What will be the result of the following operation?

2

3

4

1

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What will happen when the following code is executed?
print("Hello)

Hello will be printed.

  • An error will occur.

 Nothing will be printed.

  • It will print None.

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?