String Handling & Random Numbers

String Handling & Random Numbers

11th - 12th Grade

20 Qs

quiz-placeholder

Similar activities

Cryptography_midterm

Cryptography_midterm

11th Grade

18 Qs

Python Strings Splicing

Python Strings Splicing

12th Grade

20 Qs

Python String

Python String

12th Grade

20 Qs

Python Inbuilt functions

Python Inbuilt functions

12th Grade

15 Qs

Python Strings: words, letters and text

Python Strings: words, letters and text

10th - 12th Grade

20 Qs

Python-Basic

Python-Basic

3rd Grade - University

15 Qs

String Quiz

String Quiz

9th - 12th Grade

15 Qs

7.2 Parameters & Return Investigate

7.2 Parameters & Return Investigate

9th - 12th Grade

15 Qs

String Handling & Random Numbers

String Handling & Random Numbers

Assessment

Quiz

Computers

11th - 12th Grade

Hard

Created by

Kareem Ahmed

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does len("Python") return?

5

6

7

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'banana'[0:3] return?

ban

ana

bana

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'code'.upper() return?

Code

code

CODE

cODE

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does 'Hi' + ' ' + 'There' return?

HiThere

Hi There

Hi+There

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does ord('A') return?

65

A

97

122

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 'elephant'[1:4]?

ele

lep

lph

phan

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you combine first and last name in Python?

firstName.lastName

firstName + " " + lastName

firstName - lastName

firstName, lastName

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?