PYTHON-02

PYTHON-02

9th - 12th Grade

11 Qs

quiz-placeholder

Similar activities

Tin học 10 _ Bài 16 _Định dạng văn bản

Tin học 10 _ Bài 16 _Định dạng văn bản

10th - 12th Grade

10 Qs

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

TIN 11 - PYTHON - PHÉP TOÁN - BIỂU THỨC - CÂU LỆNH GÁN

11th Grade

10 Qs

QBASIC Programming

QBASIC Programming

5th - 10th Grade

10 Qs

JSPS Competition Hackathon - Scratch Language - Grade 1

JSPS Competition Hackathon - Scratch Language - Grade 1

2nd Grade - University

10 Qs

Tin 8/1

Tin 8/1

KG - University

10 Qs

ICT 9 Quiz 1

ICT 9 Quiz 1

9th Grade

10 Qs

Pemograman Dasar Kelas X TKJ 2020

Pemograman Dasar Kelas X TKJ 2020

10th Grade

10 Qs

ICT S120 (Prelim Review)

ICT S120 (Prelim Review)

11th Grade

15 Qs

PYTHON-02

PYTHON-02

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Riya Shakya

Used 18+ times

FREE Resource

AI

Enhance your content in a minute

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

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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

var x = 5

x = 5

int x = 5

variable x = 5

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following is not a valid Python datatype?

str

list

array

tuple

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which operator is used for exponentiation in Python?

^

*

**

//

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the datatype of the result of the expression 5 + 2.5?

int

float

str

bool

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following statements is true about Python variables?

Variables must be declared before use.

Variables cannot be reassigned once a value is assigned.

Variable names are case-insensitive

Variables can hold values of different datatypes

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following is an example of a local variable?

A variable declared inside a function

A variable declared outside any function or block

A variable declared inside a class

A variable declared inside a loop

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the output of the following code snippet?

x = 5

y = 2

result = x // y

print(result)

2.5

2

2.0

2.2

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?