Python Quiz 1 (UPB2021)

Python Quiz 1 (UPB2021)

9th - 12th Grade

•

30 Qs

quiz-placeholder

Similar activities

ULHAR EXCEL

ULHAR EXCEL

10th Grade

•

25 Qs

ICT QUIZ!

ICT QUIZ!

10th - 12th Grade

•

25 Qs

Quiz tentang Array dan String, knapsack dalam Pemrograman

Quiz tentang Array dan String, knapsack dalam Pemrograman

11th Grade

•

25 Qs

Career Management Quiz 2.02

Career Management Quiz 2.02

9th - 12th Grade

•

25 Qs

Types of Media

Types of Media

11th - 12th Grade

•

25 Qs

gamez tik7

gamez tik7

12th Grade - University

•

25 Qs

Menerapkan Pembuatan Blog (BO KD 3.15)

Menerapkan Pembuatan Blog (BO KD 3.15)

11th Grade

•

25 Qs

Microprocessor in control Applications and Modeling Applications

Microprocessor in control Applications and Modeling Applications

12th Grade

•

25 Qs

Python Quiz 1 (UPB2021)

Python Quiz 1 (UPB2021)

Assessment

Quiz

•

Computers

•

9th - 12th Grade

•

Easy

Created by

Karen Kikuchi

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct syntax of the len function for string x:

x.len()

len[x]

LEN[]

len(x)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct syntax for converting the string x to uppercase is :

X.upper()

upper(x)

x.UPPER[ ]

x.upper()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct syntax for converting the string myname to lowercase is :

myNAME.lower[ ]

myname.lower( )

myname.upper( )

myname_lower(12 )

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To remove the spaces present at start and end of the string, you can use

split()

len()

strip()

remove()

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Let x= "Python", the output of

print(x[0])

print(x[1])

print(x[2])

PYT

P

y

t

T

h

o

n

oh

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What letter will be printed on the screen after running this code:

e
x
t
Nothing prints

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

In the following code, "city" is an example of a what?

List
Loop
Variable
Array

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?