Strings in python

Strings in python

University

10 Qs

quiz-placeholder

Similar activities

DLD Unit 1 _ 1

DLD Unit 1 _ 1

University

15 Qs

GDG Code Team Selection Test – Code & Logic Edition

GDG Code Team Selection Test – Code & Logic Edition

University

10 Qs

Python

Python

University

10 Qs

ESDL Pattern Matching

ESDL Pattern Matching

University

9 Qs

Exam 4 Review

Exam 4 Review

University

14 Qs

PPEBT

PPEBT

University

15 Qs

C Programming Quiz2

C Programming Quiz2

University

15 Qs

Variabel dan Konstanta dalam Pemrograman

Variabel dan Konstanta dalam Pemrograman

University

10 Qs

Strings in python

Strings in python

Assessment

Quiz

Engineering

University

Practice Problem

Medium

Created by

Dr. 2538

Used 5+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is printed by the following statement?

print("P" not in "APCSP")

True

False

Error

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate the following expression:

"dog" < "Dog"

They are the same word

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For strings, the + operator represents

Concatenation

Addition

Appending

Recantation

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

s1="Hello"

n1=10

print(s1+n1)

What is the error in this code?

Print statement not written in quotes

Numeric value not written in quotes

colon not written after the print statement

string cannot be added to a number

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

str1='101'

x=int(str1)

z=x+400

print(z)

101400

x400

501

none of above

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

index of a string begins with

1

0

a

-1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

________ is used to represent multi line strings.

' '

" "

''' '''

{ }

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?