Quiz#2

Quiz#2

6th - 8th Grade

11 Qs

quiz-placeholder

Similar activities

Computer Hardware - CPU & GPU

Computer Hardware - CPU & GPU

7th Grade - University

16 Qs

Mid-Tern Exam's Review

Mid-Tern Exam's Review

8th Grade

15 Qs

Computer Hardware 8th

Computer Hardware 8th

6th - 8th Grade

15 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

Hardware and software LST

Hardware and software LST

7th - 8th Grade

14 Qs

Quiz 8 (01.09.2021)

Quiz 8 (01.09.2021)

1st - 12th Grade

10 Qs

Play with Scratch - 1

Play with Scratch - 1

5th - 6th Grade

15 Qs

Digcit 5-6

Digcit 5-6

5th - 6th Grade

10 Qs

Quiz#2

Quiz#2

Assessment

Quiz

Computers

6th - 8th Grade

Easy

Created by

Eman Shatnawe

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does Python use to define blocks of code (e.g., in loops, functions, etc.)?

Semicolons ;

Curly braces {}

Indentation

D) Parentheses ()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid comment in Python?

// This is a comment

/* This is a comment */

# This is a comment

<!-- This is a comment -->

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable in Python used for?

To create functions

To store data

To print messages on the screen

To create loops

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

1stVariable

my-variable

my_variable

my variable

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type would you use to store the value 3.14?

int

str

bool

float

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a Boolean value in Python?

Yes

1

True

"True"

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the following code output?

10

"55"

5

Error

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?