G11_MCQ_FUNCTIONS and STRINGS

G11_MCQ_FUNCTIONS and STRINGS

11th Grade

20 Qs

quiz-placeholder

Similar activities

Internet

Internet

5th Grade - Professional Development

20 Qs

Ôn tập kỳ 2 tin 6

Ôn tập kỳ 2 tin 6

1st - 12th Grade

15 Qs

Technology trends

Technology trends

7th - 12th Grade

15 Qs

Quis Internet

Quis Internet

11th Grade

20 Qs

BTIK

BTIK

9th - 12th Grade

20 Qs

2.6 The Internet Address Pt 2

2.6 The Internet Address Pt 2

11th - 12th Grade

16 Qs

Python 2 модуль

Python 2 модуль

4th - 11th Grade

18 Qs

Ինֆորմատիկա 10 II   կիսամյակի  ամփոփիչ աշխատանք

Ինֆորմատիկա 10 II կիսամյակի ամփոփիչ աշխատանք

10th - 12th Grade

20 Qs

G11_MCQ_FUNCTIONS and STRINGS

G11_MCQ_FUNCTIONS and STRINGS

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Fathima Shirin

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

What letter will be printed on the screen after running this code:

e

x

t

Nothing prints

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the operator can be used in Strings?

+

*

Both of the above

None of the above

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Python accepts single ('), double (") and triple (''' or """) quotes to denote strings. Which of the following is NOT acceptable Python syntax?

print('Hello World')

print("Hello World")

print('Hello World")

print(""'Hello World'"")

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is printed by the following statement?

print("P" not in "APCSP")

True

False

Error

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

data = "No Way!" The expression len(data) evaluates to:

7

9

8

6

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What syntax can you use to insert a line break between strings so that they appear over multiple lines?

\l

/

\\n

\n

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will the output be from the following code?

print("Hello world!" * 2)

TypeError

Hello world world!

Hello world!Hello world!

Hello world! * 2

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?