Python Quiz 1 (UPB2021)

Python Quiz 1 (UPB2021)

9th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

Python (I/O to Lists) Formative Quiz

Python (I/O to Lists) Formative Quiz

9th Grade

25 Qs

Q3 Final Comp Sci

Q3 Final Comp Sci

9th - 12th Grade

25 Qs

ICC Exam Review

ICC Exam Review

12th Grade

25 Qs

Program Development - Python: Strings

Program Development - Python: Strings

9th - 10th Grade

25 Qs

ทดสอบภาษาไพทอนเบื้องต้น

ทดสอบภาษาไพทอนเบื้องต้น

10th - 12th Grade

30 Qs

Python - Data types

Python - Data types

8th - 9th Grade

26 Qs

JAVASCRIPT - JR

JAVASCRIPT - JR

11th Grade

25 Qs

Python Basics Str's & Stmts 126

Python Basics Str's & Stmts 126

9th - 12th Grade

26 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

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?