Python Basics for Grade 8

Python Basics for Grade 8

8th Grade

•

41 Qs

quiz-placeholder

Similar activities

LATIHAN SAS KELAS 8 GANJIL

LATIHAN SAS KELAS 8 GANJIL

8th Grade

•

40 Qs

Excel & Database Assessment – Multiple Choice (1–14)

Excel & Database Assessment – Multiple Choice (1–14)

8th Grade

•

40 Qs

SUMBER25-INFORMATIKA-KELAS7-VENY

SUMBER25-INFORMATIKA-KELAS7-VENY

7th Grade - University

•

43 Qs

Latihan Soal Kelas 8

Latihan Soal Kelas 8

8th Grade

•

40 Qs

UTS Konfigurasi dan Administrasi Basis Data

UTS Konfigurasi dan Administrasi Basis Data

4th Grade - University

•

41 Qs

REMIDI SAS 8 SMT 1 INFORMATIKA

REMIDI SAS 8 SMT 1 INFORMATIKA

8th Grade - University

•

40 Qs

Networking Week 6

Networking Week 6

3rd Grade - University

•

39 Qs

TIK Kelas 6 SMT 1: Computational Thinking & Basic Software

TIK Kelas 6 SMT 1: Computational Thinking & Basic Software

6th - 8th Grade

•

40 Qs

Python Basics for Grade 8

Python Basics for Grade 8

Assessment

Quiz

•

Information Technology (IT)

•

8th Grade

•

Practice Problem

•

Hard

Created by

ahmed HMED

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...

41 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print('Hello, World!')?

Hello, World

Hello World!

Hello, World!

Hello, World!!

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you use the input function to get user input?

Use the print() function to get user input.

Call the input() method on a string object.

Use the read() function to capture user input.

Use the input() function to get user input.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write a simple if statement to check if a number is positive.

if (number == 0) { /* number is zero */ }

if (number < 0) { /* number is negative */ }

if (number > 0) { /* number is positive */ }

if (number >= 0) { /* number is non-negative */ }

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code print? print(5 > 3)

False

True

5 < 3

3 > 5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you concatenate strings in a print statement?

Strings can be concatenated by placing them next to each other without any operator.

Use the '+' operator to concatenate strings.

Use the '*' operator to concatenate strings.

You can concatenate strings by using the '&' operator.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Write a for loop that prints numbers from 1 to 5.

for i in range(1, 5): print(i)

for i in range(1, 6): print(i)

for i in range(1, 10): print(i)

for i in range(0, 6): print(i)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the input function in Python?

To take input from the user.

To store data in a variable.

To execute a loop in Python.

To define a function in Python.

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?