
50 Question Programming Quiz (Python Challenges 2 to 10) 191224

Quiz
•
Computers
•
6th Grade
•
Medium

Patrick Kilgarriff
Used 3+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
50 questions
Soal Ujian Akhir Semester (UAS) Cloud Computing

Quiz
•
1st Grade - University
50 questions
VEXcode VR Blocks Unit 2-5 MPT

Quiz
•
6th - 8th Grade
50 questions
икт 50 сурак 2 часть

Quiz
•
1st - 6th Grade
46 questions
Peripheral Devices

Quiz
•
6th - 7th Grade
53 questions
Basic Spreadsheets

Quiz
•
5th - 7th Grade
50 questions
ULANGAN HARIAN TEKNIK PENGOLAHAN AUDIO DAN VIDEO

Quiz
•
1st - 12th Grade
46 questions
CS Discoveries Quiz

Quiz
•
6th Grade
50 questions
PAT SIMKOMDIG

Quiz
•
1st - 10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
typing

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade