Write the output of the following code:
x=2
x=5
x=x+x
print(x)
python programming quiz
Quiz
•
Other, Science, Professional Development
•
12th Grade - University
•
Hard
Md Miah
Used 16+ times
FREE Resource
26 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Write the output of the following code:
x=2
x=5
x=x+x
print(x)
7
10
4
Error
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Write the output of the following code :
x=2
y=3
x+y+5
print(x+y)
8
6
10
5
3.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
What is a keyword?
Reserved Word
Predefined Word
Keywords are part of the syntax and they cannot be used as an identifier.
All of them
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Which statement will display square of number (n)
print(n * n)
print(math.pow(n,2)) # math module is already imported
All of the above
Only First
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following data types is not supported in python?
String
Number
List
Slice
6.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
Select the reserved keyword in python-
else
raise
import
All of them
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this string operation s[2:5] , if s="hello world" -
lo
llo
llow
ell
25 questions
Script_programming_test
Quiz
•
University
26 questions
Python Quiz SE 27/10/2023
Quiz
•
University
22 questions
ITE-1-Ch01_Quiz01
Quiz
•
University
25 questions
Asesmen Algoritma dan Pemrograman
Quiz
•
9th - 12th Grade
25 questions
1st Embedded & Ai T
Quiz
•
University
21 questions
mechanical advantage
Quiz
•
9th - 12th Grade
25 questions
Grade XII-IP Self Evaluation (Python Series)
Quiz
•
12th Grade
25 questions
Quiz_1_Skill_Lab_Python
Quiz
•
University
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