What is the result of the following code?
s = "hello"
print(s[1:4])
ח-2 שבוע לומדים אחרת
Quiz
•
Computers
•
8th Grade
•
Hard
Levy Roni.Aharon
Used 4+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of the following code?
s = "hello"
print(s[1:4])
h
ell
llo
hel
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following command print?
s = "python"
print(s.upper())
python
PYTHON
PyThOn
Error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result?
s = "welcome"
print(len(s))
7
8
6
Error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of the following code?
s = "abc" + "def"
print(s)
abc
def
abcdef
Error
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following command print?
s = "python"
print(s[0] + s[-1])
pn
ph
py
Error
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will the following command print?
s = "hello world"
print(s.split(" ")[1])
hello
world
Error
Space
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the result of the following code?
s = "123"
print(s * 2)
123
246
123123
Error
25 questions
BCHS - Y8 Python
Quiz
•
8th Grade
25 questions
Python_1
Quiz
•
6th - 8th Grade
25 questions
Introduction to Python
Quiz
•
KG - University
25 questions
Python MCQ
Quiz
•
6th - 8th Grade
25 questions
Mid-Year Java Check
Quiz
•
8th Grade
25 questions
NEW Coding 2 Performance Final
Quiz
•
6th - 8th Grade
30 questions
Python Beginner
Quiz
•
6th - 12th Grade
29 questions
Year 8 Python
Quiz
•
8th Grade
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
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
44 questions
El fin del año- 7th
Quiz
•
7th - 12th Grade
40 questions
Word Study Assessment: Roots, Prefixes, Suffixes, and Vocabulary
Quiz
•
8th Grade
17 questions
guess the logo
Quiz
•
8th Grade
16 questions
Function or Non-Function?
Quiz
•
8th - 10th Grade
15 questions
Sentence Fragments and Run-ons
Quiz
•
8th Grade