Python Quiz 1 (UPB2021)

Python Quiz 1 (UPB2021)

9th - 12th Grade

โ€ข

30 Qs

quiz-placeholder

Similar activities

Ereditarietร -polimorfismo

Ereditarietร -polimorfismo

11th Grade

โ€ข

25 Qs

Intro to Web Development (Pre-Test)

Intro to Web Development (Pre-Test)

9th - 12th Grade

โ€ข

25 Qs

PAS KOMPUTER AKUNTANSI XI

PAS KOMPUTER AKUNTANSI XI

11th Grade

โ€ข

25 Qs

ICT Assessment 1 Grade 9

ICT Assessment 1 Grade 9

9th Grade

โ€ข

25 Qs

latihan soal informatika SMALSA

latihan soal informatika SMALSA

10th Grade

โ€ข

25 Qs

CompTIA 220-902 Practice PM TEC

CompTIA 220-902 Practice PM TEC

11th - 12th Grade

โ€ข

26 Qs

PAS Kelas 7 Ganjil

PAS Kelas 7 Ganjil

7th Grade - University

โ€ข

25 Qs

HTML & CSS

HTML & CSS

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?