
Programming Quiz
Authored by Saloni Nandurkar
Engineering
12th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the length of the string "Hello, World!"?
10
12
13
14
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these statements is true about strings?
Strings are mutable (can be modified directly).
Strings are immutable (cannot be modified directly).
Strings are only numeric.
Strings cannot store special characters.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in an array?
1
0
-1
Depends on the language
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following methods checks if a substring exists within a string?
replace()
find()
split()
sort()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If str1 = "hello", what will str1[1:4] return?
"h"
"ell"
"ello"
An error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the result of len(" ") be?
0
1
2
An error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following operation? Input string: "Hello" Operation: Reverse the string.
"olleH"
"Hello"
"olle"
"Holle"
Access all questions and much more by creating a free account
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?