String manipulation class11

String manipulation class11

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

UAS Praktikum: Logika dan Algoritma Pemrograman

UAS Praktikum: Logika dan Algoritma Pemrograman

1st Grade - University

10 Qs

C++ cap. 4

C++ cap. 4

9th - 12th Grade

15 Qs

2022 高二下半年小测验1 String.h & Function

2022 高二下半年小测验1 String.h & Function

12th Grade

10 Qs

G10 CS String Manipulation

G10 CS String Manipulation

12th Grade

15 Qs

C++ Identifiers

C++ Identifiers

10th Grade

10 Qs

C# Data Types

C# Data Types

10th Grade

10 Qs

First Day Quiz

First Day Quiz

8th - 9th Grade

14 Qs

String Method

String Method

10th Grade

10 Qs

String manipulation class11

String manipulation class11

Assessment

Quiz

Computers

9th - 12th Grade

Easy

Created by

Rohit E

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Negative index (-1) belongs to which character of a string

first character

last character

second last character

second character

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions will return the string in all caps?

to.upper()

  1. is.upper()

upper()

all-upper()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the correct output?

  1. True False

False True

  1. False False

  1. True True

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct function to get the ASCII code of a character:

  1. char('char')

  1. All of these

  1. ascii('char')

ord('char')

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

str1 = 'Waha'

print(str1[:3] + 'Bhyi' + str1[-3:])

  1. Wah Bhyi Wah

  1. WahBhyiWah

  1. WahBhyiWaha

WahBhyiaha

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Functions capitalize() and title() return the same result.

False

True

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the result of this code: ‘*’ * 3

***

Error

*3

3*

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?