
Strings and boolean logic

Quiz
•
Computers
•
11th Grade
•
Hard
Bhoomika Ananad
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
36 questions
TITIN

Quiz
•
11th Grade
35 questions
Информатика 2 нұска

Quiz
•
9th - 12th Grade
40 questions
HTML Final Quizz

Quiz
•
5th - 12th Grade
44 questions
Multidimensional list and tuples 2025

Quiz
•
9th - 12th Grade
35 questions
Python. Основы языка

Quiz
•
9th - 12th Grade
40 questions
Roblox Lanjutan (Bag. 7)

Quiz
•
9th - 12th Grade
40 questions
đề cương tin học cuối kì 2 (11)

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade