COMP2_Quiz3

COMP2_Quiz3

Professional Development

20 Qs

quiz-placeholder

Similar activities

Quiz 3

Quiz 3

Professional Development

19 Qs

Tipos de datos y variables

Tipos de datos y variables

Professional Development

15 Qs

CloudBinary_Basic-Shell-scripting

CloudBinary_Basic-Shell-scripting

Professional Development

15 Qs

Basic Computer Skills Pipe Trades Apprentice

Basic Computer Skills Pipe Trades Apprentice

Professional Development

20 Qs

Python_2R

Python_2R

KG - Professional Development

20 Qs

Salesforce Questions

Salesforce Questions

Professional Development

19 Qs

Linked List

Linked List

Professional Development

15 Qs

COMP2_Quiz3

COMP2_Quiz3

Assessment

Quiz

Computers

Professional Development

Medium

Created by

Angela Cruz

Used 5+ times

FREE Resource

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()

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?