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

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

6th Grade

50 Qs

quiz-placeholder

Similar activities

python

python

6th - 9th Grade

46 Qs

Computer basics

Computer basics

5th - 9th Grade

50 Qs

END OF WEEK REVISION QUIZ  GRADE 6

END OF WEEK REVISION QUIZ GRADE 6

6th Grade

51 Qs

Another TSA Coding Practice Test

Another TSA Coding Practice Test

6th - 8th Grade

50 Qs

Revision-2 Python

Revision-2 Python

6th - 8th Grade

50 Qs

IT for life

IT for life

KG - University

55 Qs

IT Fundamentals Test Part 1

IT Fundamentals Test Part 1

KG - University

49 Qs

Computing Heroes Quiz KS3

Computing Heroes Quiz KS3

5th - 10th Grade

53 Qs

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

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

Assessment

Quiz

Computers

6th Grade

Medium

Created by

Patrick Kilgarriff

Used 3+ times

FREE Resource

50 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

Which variable stores the calculated average in this program?

num1

num2

average

result

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?