AEM 249 Lecture 16

AEM 249 Lecture 16

University

15 Qs

quiz-placeholder

Similar activities

Django-quiz

Django-quiz

5th Grade - University

20 Qs

Basic on Operating System

Basic on Operating System

University

10 Qs

MIDTERM EXAM - IT APP

MIDTERM EXAM - IT APP

University

17 Qs

DreamWeaver CS6

DreamWeaver CS6

University

20 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

CHAPTER 1: COMPUTER SECURITY REVIEW

CHAPTER 1: COMPUTER SECURITY REVIEW

University

10 Qs

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

Multimedia Video & Animation

Multimedia Video & Animation

University

20 Qs

AEM 249 Lecture 16

AEM 249 Lecture 16

Assessment

Quiz

Computers

University

Practice Problem

Easy

Created by

Markeith Diamond

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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 Computers