Homework 5- Variables and selection

Quiz
•
Computers
•
8th Grade
•
Hard
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
Create a free account and access millions of resources
Similar Resources on Wayground
6 questions
Python 1

Quiz
•
7th - 9th Grade
9 questions
Python Programming Basics

Quiz
•
6th - 12th Grade
14 questions
Variables and Data Types

Quiz
•
8th Grade
15 questions
ASK F2 -KOD ARAHAN (PYTHON)

Quiz
•
1st Grade - University
10 questions
My Python : About Me

Quiz
•
6th - 8th Grade
14 questions
Python Basic Unit 1

Quiz
•
7th - 8th Grade
12 questions
Navs Python Quiz

Quiz
•
8th - 10th Grade
12 questions
Python Homework

Quiz
•
8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

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

Interactive video
•
6th - 10th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
20 questions
Copyright and Fair Use

Quiz
•
6th - 8th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade