PYTHON PROGRAMMING STRING Q6

PYTHON PROGRAMMING STRING Q6

University

25 Qs

quiz-placeholder

Similar activities

ITE TEST 2

ITE TEST 2

University

20 Qs

KIỂM TRA CUỐI KÌ 1 TIN 7 ( 24 - 25 )

KIỂM TRA CUỐI KÌ 1 TIN 7 ( 24 - 25 )

7th Grade - University

20 Qs

Skill Competition Quiz 2024

Skill Competition Quiz 2024

10th Grade - University

20 Qs

SOFTWARE 7I

SOFTWARE 7I

7th Grade - University

20 Qs

Spreadsheet Fundamentals - Quiz2

Spreadsheet Fundamentals - Quiz2

University

20 Qs

Algoritma Remedial RPL

Algoritma Remedial RPL

University

20 Qs

Ulangan Harian Analisis Data 8C

Ulangan Harian Analisis Data 8C

8th Grade - University

20 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

PYTHON PROGRAMMING STRING Q6

PYTHON PROGRAMMING STRING Q6

Assessment

Quiz

Computers

University

Medium

Created by

Darwin Vargas

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

A. H

B. e

C. l

D. o

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you get the length of a string s in Python?

A. s.size()

B. s.len()

C. length(s)

D. len(s)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

A. P

B. n

C. o

D. h

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method can be used to convert all characters in a string to uppercase?

A. upper()

B. uppercase()

C. toUpperCase()

D. capitalize()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

A. hello world

B. Hello World

C. HELLO WORLD

D. Hello world

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you concatenate two strings str1 and str2 in Python?

A. str1.add(str2)

B. str1 + str2

C. concat(str1, str2)

D. str1.append(str2)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

A. 1

B. 2

C. 3

D. -1

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?