Search Header Logo

Introduction to Programming Basics

Authored by Jet Karra

Computers

8th Grade

Used 6+ times

Introduction to Programming Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to start a Python script?

`begin`

`def main():`

`start`

`function main()`

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

`2nd_variable`

`variable-name`

`variable_name`

`variable name`

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following code: `print(3 + 4 * 2)`?

14

11

10

7

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is used to create a comment in Python?

`//`

`#`

`/* */`

``

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the data type of the following: `3.14`?

`int`

`float`

`str`

`bool`

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a loop structure in Python?

`if`

`while`

`switch`

`case`

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of `print("Hello" + "World")`?

`Hello World`

`HelloWorld`

`Hello+World`

`Hello World!`

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers