InfyTq - String 1

InfyTq - String 1

University

25 Qs

quiz-placeholder

Similar activities

1.1.3 Input, output and storage

1.1.3 Input, output and storage

11th Grade - University

22 Qs

Digital and Analog transmission

Digital and Analog transmission

University

20 Qs

Soal AIJ bulan Agustus 2019 kls xii

Soal AIJ bulan Agustus 2019 kls xii

University

20 Qs

Kuis Pemrograman Dasar

Kuis Pemrograman Dasar

University

20 Qs

Input/Output

Input/Output

University

20 Qs

Machine Learning

Machine Learning

University

20 Qs

Algoritma Pemrograman

Algoritma Pemrograman

University

20 Qs

คอมพิวเตอร์และสารสนเทศการงานอาชีพ 1

คอมพิวเตอร์และสารสนเทศการงานอาชีพ 1

University

20 Qs

InfyTq - String 1

InfyTq - String 1

Assessment

Quiz

Geography, Computers

University

Practice Problem

Medium

Created by

KarunaiMuthu SriRam

Used 4+ 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

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

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?