
Strings and boolean logic
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Bhoomika Ananad
Used 1+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
44 questions
OCR J275 - Networks Part A
Quiz
•
8th - 11th Grade
40 questions
MYOB Asyiik
Quiz
•
11th Grade
39 questions
Dremel Safety Quiz
Quiz
•
9th - 12th Grade
36 questions
Excel tercel parcial licenciatura
Quiz
•
9th Grade - University
35 questions
DIT Exam Review 2021-2022 Part 1
Quiz
•
9th - 12th Grade
40 questions
Empowerment Technologies Quiz
Quiz
•
11th Grade
40 questions
TIK kelas 7, Penilaian Tengah semester
Quiz
•
7th Grade - University
35 questions
[AP CSP] Programming with Conditionals [If, Elif, Else]
Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
36 questions
Benchmark 2 Review (LEAP)
Quiz
•
11th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
hands washing
Quiz
•
5th - 12th Grade
