1. What will be the output of the following code?
x = 5
y = "5"
print(x + int(y))
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))
15 questions
Codigo
Quiz
•
University
20 questions
Quiz 1 (Introduction to Mechatronics )
Quiz
•
University
20 questions
Code Sprint '25
Quiz
•
University
15 questions
TECH WHIZ
Quiz
•
University
20 questions
Java MCQ Test Day-2
Quiz
•
University
15 questions
TRICODE CHALLENGE ROUND 1
Quiz
•
University
20 questions
Introduction to C++
Quiz
•
University
15 questions
Kuis Pelatihan Pertemuan 5 (3D Printing)
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