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

FUNDAMENTAL in PROGRAMMING

FUNDAMENTAL in PROGRAMMING

1st - 10th Grade

52 Qs

Y7 end of year computing assessment

Y7 end of year computing assessment

6th - 8th Grade

55 Qs

Pre-Test: KidOYO & Vocabulary

Pre-Test: KidOYO & Vocabulary

6th - 8th Grade

50 Qs

LATIHAN TKJ 3

LATIHAN TKJ 3

1st Grade - University

51 Qs

CIW practice

CIW practice

6th Grade

50 Qs

ICT P6 2nd Term February Elmotamayez

ICT P6 2nd Term February Elmotamayez

6th Grade

47 Qs

KS3 Computing

KS3 Computing

6th - 8th Grade

50 Qs

CompTIA ITFundamentals CRAM

CompTIA ITFundamentals CRAM

6th Grade - University

46 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?