
50 Question Programming Quiz (Python Challenges 2 to 10) 191224
Authored by Patrick Kilgarriff
Computers
6th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of this Python program?
To calculate the sum of two numbers
To calculate the difference between two numbers
To calculate the average of two numbers
To print two numbers
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which variable stores the calculated average in this program?
num1
num2
average
result
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this program calculate?
Perimeter of a rectangle
Area of a rectangle
Volume of a rectangle
Diagonal of a rectangle
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the formula used to calculate the area in this program?
width + height
width - height
width * height
(width + height) / 2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this program output if the user inputs 6 and 3 for num1 and num2 respectively?
9
2
3
18
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if num2 is 0 in this program?
Syntax error
Runtime error (division by zero)
It will print The result is: 0
It will print The result is: infinity
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will this Python program output if the user enters "John" for the name variable and "French" for the subject variable?
I like French as well!
I like John as well!
What is your favourite subject John?
It will throw an error
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
45 questions
Introduction to Sphero
Quiz
•
6th - 8th Grade
50 questions
Keyboarding Techniques & Finger Placement - Test
Quiz
•
6th - 8th Grade
50 questions
Databases
Quiz
•
KG - 12th Grade
45 questions
Administrasi Sistem Jaringan
Quiz
•
1st - 12th Grade
55 questions
Social Media
Quiz
•
6th - 8th Grade
50 questions
SOAL LATIHAN UJIAN MAPEL TEKNOLOGI LAYANAN JARINGAN
Quiz
•
6th - 8th Grade
45 questions
M1 2nd Term FINAL TEST 2020
Quiz
•
6th Grade
50 questions
Typography TEST REVIEW
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade