Homework 5- Variables and selection

Quiz
•
Computers
•
8th Grade
•
Hard
Kristie Hallmark
Used 6+ 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
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Python Basics (Y9)

Quiz
•
8th - 10th Grade
13 questions
Program Development - Python: Errors

Quiz
•
8th - 10th Grade
14 questions
Data types and Input

Quiz
•
7th - 9th Grade
10 questions
Python L2 Input & Variable

Quiz
•
6th - 8th Grade
13 questions
3. Variables and Operators

Quiz
•
8th Grade
10 questions
Intro to Python

Quiz
•
KG - University
10 questions
Python Quiz-01

Quiz
•
6th - 10th Grade
14 questions
Python Syntax

Quiz
•
6th - 12th 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
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
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade