Python Fundamentals and Programming

Quiz
•
Other, Computers
•
11th - 12th Grade
•
Hard
chandra kant
Used 99+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output?
>>>t = (1, 2)
>>>2 * t
(1, 2, 1, 2)
[1, 2, 1, 2]
(1, 1, 2, 2)
(2,4)
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
t = (1, 2, 4, 3, 8, 9)
print([t[i] for i in range(0, len(t), 2)])
[2, 3, 9]
(1, 4, 8)
[1, 4, 8]
[1, 2, 4, 3, 8, 9]
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the following piece of code when executed in Python shell?
>>> a=("Check")*3
>>> a
(‘Check’,’Check’,’Check’)
* Operator not valid for tuples
(‘CheckCheckCheck’)
Syntax error
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the output of the following code?
>>> a=(2,3,4)
>>> sum(a,3)
Too many arguments for sum() method
The method sum() doesn’t exist for tuples
12
Synatx Error
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Is the following piece of code valid?
>>> a=(1,2,3,4)
>>> del a
No because tuple is immutable
Yes, the entire tuple is deleted
No, invalid syntax for del method
Yes, first element in the tuple is deleted
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What type of data is: a=[(1,1),(2,4),(3,9)]?
Array of tuples
List of tuples
Tuples of lists
Invalid type
7.
OPEN ENDED QUESTION
2 mins • 1 pt
write q python function to print the sum of digits of a given number
Evaluate responses using AI:
OFF
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Python Boolean and If

Quiz
•
9th - 12th Grade
10 questions
Python

Quiz
•
1st - 12th Grade
10 questions
Tin 11 - PHÉP LẶP

Quiz
•
11th Grade
10 questions
python-BTxâu

Quiz
•
9th - 12th Grade
15 questions
CodeHS Python Conditionals Quiz Reveiw

Quiz
•
9th - 12th Grade
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
15 questions
Chapter 8 String Manipulations

Quiz
•
12th Grade
10 questions
Quiz 16 - Arrays and Loops

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade