Python basics

Python basics

6th - 8th Grade

15 Qs

quiz-placeholder

Similar activities

ASK T2 - Kod Arahan (Python)

ASK T2 - Kod Arahan (Python)

7th Grade - University

20 Qs

Ch.8 - Introducing Python

Ch.8 - Introducing Python

6th Grade - Professional Development

20 Qs

Understanding Python Basics

Understanding Python Basics

8th Grade - University

14 Qs

ABD3 (C++)

ABD3 (C++)

8th Grade

12 Qs

Python list, if

Python list, if

6th - 12th Grade

20 Qs

Slice Python Quiz

Slice Python Quiz

6th - 8th Grade

10 Qs

MYP2

MYP2

7th Grade

18 Qs

Python basics

Python basics

Assessment

Quiz

Computers

6th - 8th Grade

Hard

Created by

Om sinha

Used 33+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to display output on the console in Python?

input()

print()

display()

output()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you get user input in Python?

get()

input()

user_input()

read()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used to assign a value to a variable in Python?

==

<=

=

-=

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following expression: 5 + 3 * 2?

10

11

16

13

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operator is used for exponentiation in Python?

^

//

%

**

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which logical operator is used to perform a logical AND operation in Python?

&

&&

|

and

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following expression: 10 > 5 and 3 < 2?

True

False

Error

None

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?