2nd Year August Quiz

Quiz
•
Computers
•
University
•
Hard
Anand Bhasme
Used 1+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is a correct variable name in Python?
1variable
variable_1
variable-1
variable#1
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the correct way to create a list in Python?
mylist = [1, 2, 3]
mylist = (1, 2, 3)
mylist = {1, 2, 3}
mylist = <1, 2, 3>
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
5
10
15
Error
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the print() function do in Python?
Prints data to the console
Saves data to a file
Converts data to a string
Executes data
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the purpose of the pass statement in Python?
To terminate a loop
To skip a block of code
To raise an exception
To indicate no action is required
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following code?
[4, 1, 2, 3]
[1, 2, 3, 4]
None
Error
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following methods is used to add an element at a specific index in a list?
append()
insert()
extend()
add()
Create a free account and access millions of resources
Similar Resources on Wayground
45 questions
System Fundamentals

Quiz
•
University
41 questions
Introduction to AI

Quiz
•
University
35 questions
Deep Learning Quiz

Quiz
•
University
45 questions
Computer memory

Quiz
•
University
35 questions
Mid term mock test

Quiz
•
University
41 questions
Information Management Quiz 2

Quiz
•
University
38 questions
Formative searching and sorting

Quiz
•
11th Grade - University
40 questions
Project 3 Midterm Review

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University