AEM 249 Lecture 16

AEM 249 Lecture 16

University

15 Qs

quiz-placeholder

Similar activities

Java Quiz - 2_Final

Java Quiz - 2_Final

University

20 Qs

Java Math/ Java Math Methods Quiz

Java Math/ Java Math Methods Quiz

University

10 Qs

C++ - Functions

C++ - Functions

University

14 Qs

Web Scraping 102 - Quiz 2

Web Scraping 102 - Quiz 2

University

15 Qs

Java Programming I 2

Java Programming I 2

University

19 Qs

Java : Array

Java : Array

University

10 Qs

OOP - Quiz

OOP - Quiz

University

15 Qs

OOP VB.Net 1

OOP VB.Net 1

University

10 Qs

AEM 249 Lecture 16

AEM 249 Lecture 16

Assessment

Quiz

Computers

University

Easy

Created by

Markeith Diamond

Used 2+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the alignment character for left-aligned values in string formatting?

/

^

>

<

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to check if all characters in a string are lowercase or uppercase letters, or the numbers 0-9?

isdigit()

islower()

isalnum()

isupper()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the replace() method do in Python?

Removes all spaces from the string

Replaces all occurrences of a substring with a new string

Counts the number of times a substring occurs in the string

Returns the index of the first occurrence of a substring

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the find() method return if the item is not found in the string?

Error

None

0

-1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the split() method do in Python?

Returns a copy of the string as a title with the first letters of words capitalized

Joins a list of strings together

Splits a string into a list of tokens

Returns a copy of the string with leading and trailing whitespace removed

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the default separator for the split() function in Python?

Period (.)

Space

Semicolon (;)

Comma (,)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to join a list of strings together to create a single string?

merge()

combine()

concat()

join()

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?