
PROGRAMMING CONCEPTS
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
JOHN ZARATE
Used 2+ times
FREE Resource
Enhance your content in a minute
29 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the correct syntax to declare a variable in Python?
variable x = 5
int x = 5;
x = 5
declare x = 5
Answer explanation
declaring variable in python, don't need to have data type and semi colon ";"
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which data type is mutable in Python?
Tuple
String
List
Integer
Answer explanation
This means we can change an item in a list by accessing it directly as part of the assignment statement
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What does the elif statement do in Python?
Ends the program
Runs a loop
Checks another condition if the previous one is false
Defines a function
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will print(3 * "hello") output?
hellohellohello
hello * 3
A storage location for data
error
Answer explanation
n Python, the * operator can be used with strings to repeat them a specified number of times.
3 * "hello" means "hello" is repeated 3 times.
So, "hello" * 3 evaluates to "hellohellohello" (without spaces).
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is debugging?
Removing unnecessary comments from code
Fixing errors in a program
Writing new code
Running a program without stopping
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is a valid way to access an element in a list?
list[1]
list(1)
list{1}
list.1
Answer explanation
In Python, elements in a list are accessed using indexing with square brackets ([]).
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
The "if" statement is used for looping.
REYAL
FAKEY
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
26 questions
Software Development Life Cycle
Quiz
•
9th - 12th Grade
25 questions
TIK01
Quiz
•
12th Grade
25 questions
Test IP
Quiz
•
12th Grade
29 questions
Computer Parts
Quiz
•
9th - 12th Grade
26 questions
Macromedia Flash
Quiz
•
8th Grade - Professio...
24 questions
computer qualifications.
Quiz
•
12th Grade - University
25 questions
KIEM TRA TX-K11 (BO SUNG)
Quiz
•
11th Grade - University
25 questions
Robotics Mid-term Assessment Grade VII
Quiz
•
6th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
