
python

Quiz
•
Engineering
•
University
•
Easy
Avakaza Technologies
Used 1+ times
FREE Resource
19 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
1. What will be the output of the following code?
x = 5
y = "5"
print(x + int(y))
2.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of the following expression?
print(2*3 **2)
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of the following code?
s = "Python"
print(s[-2])
4.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What does the following code output?
s = "hello world"
print(s.title())
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of the following code?
numbers = [10, 20, 30]
numbers.append(40)
print(numbers)
6.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the result of the following code?
lst = [1, 2, 3, 4, 5]
print(lst[1:4])
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
What will be the output of the following code?
d = {"a": 1, "b": 2}
print(d.get("c", 3))
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
C Programming Quiz - 1

Quiz
•
University
18 questions
Verilog HDL -module 1 Quiz

Quiz
•
University
20 questions
python quiz1

Quiz
•
University
20 questions
DLD Unit 1 _ 2

Quiz
•
University
15 questions
CC SBL

Quiz
•
University
20 questions
wp_css

Quiz
•
University
20 questions
PRACTICE TEST ARDUINO

Quiz
•
11th Grade - University
21 questions
Java basic

Quiz
•
University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade