Python Basics

Python Basics

University

10 Qs

quiz-placeholder

Similar activities

pointers and structures

pointers and structures

University

10 Qs

Round 2 for Preplacement Bootcamp

Round 2 for Preplacement Bootcamp

University

15 Qs

Revisão - Arquitetura de Computadores

Revisão - Arquitetura de Computadores

University

15 Qs

Teste python- Unesp-Jaboticabal

Teste python- Unesp-Jaboticabal

University

10 Qs

Riistvara

Riistvara

10th Grade - University

12 Qs

División de redes IP en subredes

División de redes IP en subredes

University

10 Qs

Algoritmos y Estrutura de datos S2

Algoritmos y Estrutura de datos S2

University

10 Qs

PSP Week 5

PSP Week 5

University

10 Qs

Python Basics

Python Basics

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Jyothi Goddu

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

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

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?

Discover more resources for Computers