Strings and boolean logic

Strings and boolean logic

11th Grade

40 Qs

quiz-placeholder

Similar activities

All About Computers

All About Computers

9th - 12th Grade

40 Qs

 Unit -3 cyber Ethics and Software

Unit -3 cyber Ethics and Software

10th Grade - University

36 Qs

ข้อสอบปลายภาค วิทยาการคำนวณ ป.5 2/2566

ข้อสอบปลายภาค วิทยาการคำนวณ ป.5 2/2566

9th - 12th Grade

40 Qs

SDAC 7.3 - Funcionamento, Organização e Gestão da Memória

SDAC 7.3 - Funcionamento, Organização e Gestão da Memória

10th - 12th Grade

40 Qs

MYOB Asyiik

MYOB Asyiik

11th Grade

40 Qs

Excel tercel parcial licenciatura

Excel tercel parcial licenciatura

9th Grade - University

36 Qs

KTCK 2, Tin 11

KTCK 2, Tin 11

11th Grade

42 Qs

SIMULASI AM TIK

SIMULASI AM TIK

9th - 12th Grade

40 Qs

Strings and boolean logic

Strings and boolean logic

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Bhoomika Ananad

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...

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 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'"")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is printed by the following statement?

print("P" not in "APCSP")

True

False

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate the following expression:

"dog" < "Dog"

They are the same word

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For strings, the + operator represents

Concatenation

Addition

Appending

Recantation

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the most appropriate data type for: "13th December"

Float

Boolean

Integer

String

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

word = "amazing"

For the given string if we run word[2:5] what does it mean?

It will extract alphabets from index 2 to index 4

It will extract alphabets from index 2 to index 5

It will extract alphabets from position 2 to position 4

It will extract alphabets from position 2 to position 5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to convert a given string in Capital letters?

Capital

Upper

ConverttoUpper

Capitalize

Access all questions and much more by creating a free account

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?