String

String

10th Grade

30 Qs

quiz-placeholder

Similar activities

A+ Chapter 2 Test

A+ Chapter 2 Test

11th Grade

26 Qs

QUIZ DASAR-DASAR TJKT S01-02

QUIZ DASAR-DASAR TJKT S01-02

10th Grade

25 Qs

Hardware Komputer

Hardware Komputer

10th Grade - University

26 Qs

CCC2 Chapter 1 - Introduction to Computers

CCC2 Chapter 1 - Introduction to Computers

University

25 Qs

ASSESMEN TP 2,3

ASSESMEN TP 2,3

10th Grade

25 Qs

SHS Quiz 2 Grade X

SHS Quiz 2 Grade X

10th Grade

25 Qs

PTS Desain Multimedia Interaktif

PTS Desain Multimedia Interaktif

12th Grade

25 Qs

Arsitektur von neumann, sistem operasi dan aplikasi

Arsitektur von neumann, sistem operasi dan aplikasi

10th Grade - University

25 Qs

String

String

Assessment

Quiz

Computers

10th Grade

Practice Problem

Medium

Created by

Ержан Ауезов

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

One of the following functions is not used with Python String

Split

Remove

print

Replace

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct code to print line of 10 stars using repetition operation:

print("**********")

print("*"*10)

print("*"^10)

print("*"+10)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct syntax of the len function for string x:

x.len()

len[x]

LEN[]

len(x)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct syntax for converting the string x to uppercase is :

X.upper()

upper(x)

x.UPPER[ ]

x.upper()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct syntax for converting the string myname to lowercase is :

myNAME.lower[ ]

myname.lower( )

myname.upper( )

myname_lower(12 )

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To remove the spaces present at start and end of the string, you can use

split()

len()

strip()

remove()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Let x= "python is a high level language", the output of print(len(x[-1])) is

1

31

Error

25

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

Already have an account?

Discover more resources for Computers