PYTHON PROGRAMMING STRING Q6

PYTHON PROGRAMMING STRING Q6

University

25 Qs

quiz-placeholder

Similar activities

PHP First Internal Practical Viva

PHP First Internal Practical Viva

University

20 Qs

Design Thinking Overview

Design Thinking Overview

University

20 Qs

ICT WEBINAR QUIZ

ICT WEBINAR QUIZ

KG - Professional Development

20 Qs

ISPM2  Quiz 1

ISPM2 Quiz 1

University

20 Qs

COMP_Technical Quiz_Round 2

COMP_Technical Quiz_Round 2

12th Grade - University

20 Qs

Empowerment Technologies (Set 2) - by Sir Dave

Empowerment Technologies (Set 2) - by Sir Dave

11th Grade - University

20 Qs

Computación 1ro y 2do básico

Computación 1ro y 2do básico

1st Grade - University

20 Qs

PYTHON PROGRAMMING STRING Q6

PYTHON PROGRAMMING STRING Q6

Assessment

Quiz

Computers

University

Practice Problem

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?