InfyTq - String 1

InfyTq - String 1

University

25 Qs

quiz-placeholder

Similar activities

Technical Quiz

Technical Quiz

University

24 Qs

Python Quiz - BPLCK105B

Python Quiz - BPLCK105B

University

20 Qs

PYTHON PROGRAMMING Q5 ITERATIONS

PYTHON PROGRAMMING Q5 ITERATIONS

University

20 Qs

Java Quiz 1

Java Quiz 1

University

20 Qs

Programming in C(1)

Programming in C(1)

University

20 Qs

Iedc Coders Club Programming Quiz

Iedc Coders Club Programming Quiz

University

25 Qs

UNIT 1 PYTHON

UNIT 1 PYTHON

University

20 Qs

python39-02

python39-02

University

30 Qs

InfyTq - String 1

InfyTq - String 1

Assessment

Quiz

Geography, Computers

University

Medium

Created by

KarunaiMuthu SriRam

Used 4+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following Python statement?


"a"+"bc"

a

bc

bca

abc

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following Python statement?


"abcd"[2:]

a

ab

cd

dc

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

The output of executing string.ascii_letters can also be achieved by:

string.ascii_lowercase_string.digits

string.ascii_lowercase+string.ascii_uppercase

string.letters

string.lowercase_string.uppercase

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

olleh

hello

h

o

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What arithmetic operators cannot be used with strings?

+

*

All of the mentioned

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following Python code?


print (r"\nhello")

a new line and hello

\nhello

the letter r and then hello

error

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What will be the output of the following Python statement?


print('new' 'line')

Error

Output equivalent to print ‘new\nline’

newline

new line

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?