Homework 5- Variables and selection

Homework 5- Variables and selection

8th Grade

10 Qs

quiz-placeholder

Similar activities

Python Into Quiz

Python Into Quiz

6th - 8th Grade

10 Qs

Python Basics - Year 8

Python Basics - Year 8

7th - 9th Grade

14 Qs

Python Revision

Python Revision

8th Grade

15 Qs

Python Year 9 Final Recall Activity

Python Year 9 Final Recall Activity

7th - 9th Grade

15 Qs

Python Quiz 8.3

Python Quiz 8.3

6th - 8th Grade

12 Qs

Python Basic

Python Basic

6th - 8th Grade

10 Qs

Python Selection

Python Selection

8th - 9th Grade

10 Qs

Python Programming Basics

Python Programming Basics

7th - 11th Grade

12 Qs

Homework 5- Variables and selection

Homework 5- Variables and selection

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Kristie Hallmark

Used 5+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to print "Hello, World!" in Python?

`echo "Hello, World!"`

`print("Hello, World!")`

`printf("Hello, World!")`

`System.out.println("Hello, World!")`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

`1st_variable`

`variable-name`

`variable_name`

`variable name`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the `import` statement in Python?

To define a new function

To include external modules or libraries

To declare a variable

To start a loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a built-in function in Python?

`sum()`

`add()`

`total()`

`plus()`

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the following expression in Python: `3 + 4 * 2`?

`14`

`11`

`10`

`7`

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you start a comment in Python?

`

`//`

`/*`

`#`

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does INT means in python?
Decimal Numbers
Whole Number
Text
Floating Point Number

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?