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
NEW Coding 2 Performance Final
Quiz
•
6th - 8th Grade
25 questions
Python
Quiz
•
6th - 8th Grade
25 questions
Python for Absolute Beginners
Quiz
•
8th - 12th Grade
29 questions
Year 8 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
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
10 questions
Identify Slope and y-intercept (from equation)
Quiz
•
8th - 9th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
15 questions
Volume Prisms, Cylinders, Cones & Spheres
Quiz
•
8th Grade
26 questions
June 19th
Quiz
•
4th - 9th Grade
25 questions
Argumentative Writing & Informational Text Vocabulary Review
Quiz
•
8th Grade
18 questions
Informational Text Vocabulary
Quiz
•
7th - 8th Grade