T02: Python - The Basics

T02: Python - The Basics

University

10 Qs

quiz-placeholder

Similar activities

Hands-on Modul 3

Hands-on Modul 3

University

10 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

CS100||MsWord

CS100||MsWord

University

10 Qs

Types of Mass Media

Types of Mass Media

10th Grade - Professional Development

11 Qs

Software dan Hardware

Software dan Hardware

University

10 Qs

Peranti Input Ouput

Peranti Input Ouput

University

10 Qs

Website Usability and UX

Website Usability and UX

University

10 Qs

Python Week 1 & 2

Python Week 1 & 2

University

10 Qs

T02: Python - The Basics

T02: Python - The Basics

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Miriam Santos

Used 5+ 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

10 sec • 1 pt

What is the result of 1 // 2 ?

0

0.5

1.0

1

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the result of 7 % 5 ?

2

1

1.4

3

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which operator has the highest precedence in Python?

Multiplication

Addition

Exponentiation

Division

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which one uses f-strings correctly?

print("Your age is {}".format(age))

print(f"Your age is {age}")

print("Your age is %d" % age)

print("Your age is " + str(age))

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is NOT part of the Zen of Python?

Simple is better than complex

Readability counts

Flat is better than nested

Optimisation is king

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the result of 2 + 3 * 2 ** 2 ?

100

14

64

38

7.

MULTIPLE SELECT QUESTION

10 sec • 1 pt

Which of these are NOT valid in Python?

class

my variable

abc

import_from

5days

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