What will be the result of the following code:
x = 'Welcome'
print(x[3])
Pre tes dan Post test

Quiz
•
Computers
•
12th Grade
•
Hard
nafsur rokhman
Used 18+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Wel
c
Welcome Welcome Welcome
2.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Use the len function to print the length of the string.
print ( )
3.
FILL IN THE BLANK QUESTION
1 min • 10 pts
Get the first character of the string txt.
txt = "Hello World"
x =
4.
FILL IN THE BLANK 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:..............
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 BLANK QUESTION
1 min • 10 pts
Get the characters from index 2 to index 4 (llo).
txt = "Hello World"
x =
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
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Session 1

Quiz
•
9th - 12th Grade
15 questions
PCEP Section 1A: Understand fundamental terms and definitions

Quiz
•
12th Grade
11 questions
Python function output based KVRDSO lucknow

Quiz
•
11th - 12th Grade
15 questions
Javascript

Quiz
•
10th - 12th Grade
15 questions
Quiz on String

Quiz
•
12th Grade
15 questions
File Handling in Python

Quiz
•
12th Grade
11 questions
Python Function

Quiz
•
11th - 12th Grade
10 questions
LUA Test

Quiz
•
9th Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University