Search Header Logo

COMP2_Quiz3

Authored by Angela Cruz

Computers

Professional Development

Used 5+ times

COMP2_Quiz3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

It is the symbol used for assigning a value to a variable

= (equal sign)

+ (plus operator)

' " (single or double quote)

''' """ (triple single/triple double quote"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

It is the symbol used to combine two or more strings

= (equal sign)

+ (plus operator)

' " (single or double quote)

''' """ (triple single/triple double quote"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You can assign a multiline string to a variable by this sign

= (equal sign)

+ (plus operator)

' " (single or double quote)

''' """ (triple single/triple double quote"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You can assign a string value to a variable using this sign

= (equal sign)

+ (plus operator)

' " (single or double quote)

''' """ (triple single/triple double quote"

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

You can return a range of characters by using this syntax.

Slicing

Negative indexing

Slice from the start

Slice to the end

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

It is used to start the slice from the end of the string

Slicing

Negative indexing

Slice from the start

Slice to the end

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

It returns the string in upper case:

upper()

lower()

capitalize()

title()

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?