Python Basics

Python Basics

University

10 Qs

quiz-placeholder

Similar activities

Advance Python

Advance Python

KG - Professional Development

10 Qs

Float, int 8kl 25

Float, int 8kl 25

6th Grade - University

10 Qs

Chapter 2 Python

Chapter 2 Python

8th Grade - University

13 Qs

PYTHON DAY 2

PYTHON DAY 2

University

12 Qs

Biyani College Day 4

Biyani College Day 4

University

15 Qs

Revision Test- Programming in Python

Revision Test- Programming in Python

University

15 Qs

Fundamental of Python

Fundamental of Python

University

10 Qs

Python-Expressions#1

Python-Expressions#1

12th Grade - University

10 Qs

Python Basics

Python Basics

Assessment

Quiz

Computers

University

Medium

Created by

Jyothi Goddu

Used 2+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

print(2**3 + (5 + 6)**(1 + 1))

121

127

129

None

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code snippet?

print(type(5 / 2)) print(type(5 // 2))

int and int

int and float

float and int

float and float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

All keywords in Python are in

Capitalized

UPPER CASE

lower case

None of the mentioned

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the order of precedence in python?

Exponential, Parentheses, Multiplication, Division, Addition, Subtraction

Parentheses, Exponential, Multiplication, Division, Addition, Subtraction

Exponential, Parentheses, Division, Multiplication, Addition, Subtraction

Parentheses, Exponential, Multiplication, Division, Subtraction, Addition

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the values of the following Python expressions?

2**(3**2) (2**3)**2 2**3**2

512, 64, 512

64, 64, 64

512, 512, 512

64, 512, 64

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following is not a keyword in Python language?

pass

eval

assert

nonlocal

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What arithmetic operators cannot be used with strings in Python?

+

-

*

None of the above

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?