Python Algo

Python Algo

6th - 8th Grade

20 Qs

quiz-placeholder

Similar activities

Python Basics

Python Basics

6th - 7th Grade

15 Qs

Basic Python Quiz for Beginners

Basic Python Quiz for Beginners

3rd - 6th Grade

20 Qs

Introduction to Python programming

Introduction to Python programming

6th - 8th Grade

20 Qs

Grade 7 Python

Grade 7 Python

7th Grade

20 Qs

Python

Python

8th Grade

20 Qs

Python - getting started

Python - getting started

8th - 10th Grade

20 Qs

Introduction to Python

Introduction to Python

7th - 9th Grade

20 Qs

GCSE J277 - 2.2.2 - Data Types

GCSE J277 - 2.2.2 - Data Types

7th Grade

20 Qs

Python Algo

Python Algo

Assessment

Quiz

Computers

6th - 8th Grade

Medium

Created by

Ken Sion

Used 12+ times

FREE Resource

AI

Enhance your content

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa fungsi dari int(input("Masukkan angka: ")) dalam Python?

Menginput teks dari pengguna

Mengubah input menjadi integer

Menjumlahkan dua angka

Menampilkan angka ke layar

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Manakah yang termasuk struktur dasar percabangan dalam Python?

if, elif, else
for, while, do
try, except, finally
def, return, yield

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari kode berikut?
s = "Apel"

print(len(s))

4
6
5
3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fungsi lower() pada string berfungsi untuk?

Mengganti semua huruf dalam string dengan angka.
Mengubah semua huruf dalam string menjadi huruf besar.
Menghapus semua huruf dalam string.
Mengubah semua huruf dalam string menjadi huruf kecil.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Perhatikan kode berikut:

kata = "Program" print(kata.find("g"))

2
4
5
3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa output dari:

for i in range(3): print("Hai")

Hai Hai
Hello
Hai!
Hai Hai Hai

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apa yang terjadi jika kita tidak menambahkan kondisi penghenti dalam while loop?

Program akan mengalami infinite loop.
Program akan berjalan lebih cepat.
Program akan menghasilkan error.
Program akan berhenti secara normal.

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?