Search Header Logo

Strings

Authored by Elankayer Sithirasenan

Professional Development

Professional Development

Used 4+ times

Strings
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of the following functions, converts a string value to an integer value ?

str()

int()

float()

con()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if price = 3.90, what is the value of int(price) ?

3

4

3.9

9

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if name = "Alexander", what is the value of len(name) ?

7

8

9

10

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if name="Dennis Bloodnok", what is the value of name[5] ?

i

s

B

o

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

if s = "Monty Python", what is the value of s [1 : 5] ?

ont

onty

onty P

Monty

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

what is the output from this code ?

ens Bodo

ens lonk

Dni lonk

Dni Bodo

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output from this code ?

found

not found

andy

Bandy

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 Professional Development