PAct3 - Data Structures and algorithm

PAct3 - Data Structures and algorithm

University

10 Qs

quiz-placeholder

Similar activities

Java Quiz 3

Java Quiz 3

University

15 Qs

Biyani College Day 4

Biyani College Day 4

University

15 Qs

Python Basics

Python Basics

6th Grade - University

10 Qs

Coding Basics

Coding Basics

5th Grade - University

10 Qs

Splitting, Concatenating, and Joining Strings in Python

Splitting, Concatenating, and Joining Strings in Python

University

6 Qs

Q8 - FundComp - Python Básico (En)

Q8 - FundComp - Python Básico (En)

University

10 Qs

Workshop 2 Review

Workshop 2 Review

University

10 Qs

Python Programming 1: print, strings, variables, casting

Python Programming 1: print, strings, variables, casting

9th Grade - University

15 Qs

PAct3 - Data Structures and algorithm

PAct3 - Data Structures and algorithm

Assessment

Quiz

Computers

University

Hard

Created by

ALVIN CERTEZA

Used 4+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is string manipulation in Python programming?

Converting strings to integers in Python programming.

Creating new strings from existing strings in Python programming.

Using strings as arguments in Python programming.

Modifying or manipulating strings using built-in methods and functions.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the result of the following code: 'Hello'[1]?

l

e

H

o

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you extract a substring from a string in Python?

string[start:end]

string[start+1:end]

string[start:end+1]

string[start:end]

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is string formatting in Python?

Process of creating formatted strings by inserting values into placeholders within a string.

Process of concatenating two strings together in Python.

Process of removing all whitespace from a string in Python.

Process of converting strings to integers in Python.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which method is used to convert a string to uppercase in Python?

to_uppercase()

convert_upper()

uppercase()

upper()

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the output of the following code: 'Python'[1:4]?

Pth

ytho

Pyt

yth

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do you concatenate two strings in Python?

*

-

//

+

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?