Guess the correct output of the following program:
str1="6/4"
print("str1")
[Python For All] Quiz 2 - Rewind.py
Quiz
•
Computers
•
University
•
Medium
Karunya Hacks
Used 9+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Guess the correct output of the following program:
str1="6/4"
print("str1")
6/4
1
str1
1.5
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of below Python code?
str1="Information"
print(str1[2:8])
format
ormat
formatio
orma
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What arithmetic operators cannot be used with strings?
+
*
-
All of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would the following code print?
Mali = 5
print("Mali" + " is " + str(Mali))
Mali is 5
Mali is Mali
5 is Mali
5 is 5
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will following Python code return?
str1="Stack of books"
print(len(str1))
13
14
15
16
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following
aList = [5, 10, 15, 25]
print(aList[::-2])
[15, 10, 5]
[10, 5]
[25, 10]
[2, 25, 15]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Find the Output
joinList = “Welcome,to,Python”
List = joinList.split(‘,’)
print(List)
[‘WelcometoPython’]
[‘Welcome’, ‘to’, ‘Python’]
Error
[‘Welcome’]
25 questions
Quiz 2
Quiz
•
University
25 questions
Assignment 2(CIVIL)
Quiz
•
University
15 questions
ASK F2 -KOD ARAHAN (PYTHON)
Quiz
•
1st Grade - University
15 questions
Python Basics
Quiz
•
University
20 questions
Basic 2 Python
Quiz
•
12th Grade - Professi...
20 questions
Grade 7 Python Programming Quiz
Quiz
•
7th Grade - University
15 questions
Python Programming 1: print, strings, variables, casting
Quiz
•
9th Grade - University
20 questions
TEST FINAL - Algoritmia de Programación
Quiz
•
University
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