
Pre tes dan Post test
Authored by nafsur rokhman
Computers
12th Grade
Used 18+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What will be the result of the following code:
x = 'Welcome'
print(x[3])
Wel
c
Welcome Welcome Welcome
2.
FILL IN THE BLANKS QUESTION
1 min • 10 pts
Use the len function to print the length of the string.
print ( )
(a)
3.
FILL IN THE BLANKS QUESTION
1 min • 10 pts
Get the first character of the string txt.
txt = "Hello World"
x =
(a)
4.
FILL IN THE BLANKS QUESTION
1 min • 10 pts
Insert the correct keyword to check if the word 'free' is present in the text:
txt = 'The best things in life are free!'
if 'free' txt: (a)
print('Yes, free is present in the text.')
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What will be the result of the following code:
x = 'Welcome'
print(x[3:5])
lcome
come
com
co
6.
FILL IN THE BLANKS QUESTION
1 min • 10 pts
Get the characters from index 2 to index 4 (llo).
txt = "Hello World"
x =
(a)
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
What will be the result of the following code:
x = 'Welcome'
print(x[3:])
lcome
come
com
co
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?