PROGRAMMING CONCEPTS

PROGRAMMING CONCEPTS

12th Grade

•

29 Qs

quiz-placeholder

Similar activities

KOMPUTER

KOMPUTER

2nd Grade - University

•

25 Qs

SOAL UH INFORMATIKA KLS X SMT 1 2023-2024

SOAL UH INFORMATIKA KLS X SMT 1 2023-2024

9th - 12th Grade

•

25 Qs

zoom

zoom

1st - 12th Grade

•

24 Qs

Design principles pre-test

Design principles pre-test

9th - 12th Grade

•

24 Qs

INFORMATYKA OD PODSTAW

INFORMATYKA OD PODSTAW

KG - Professional Development

•

24 Qs

PTS Desain Multimedia Interaktif

PTS Desain Multimedia Interaktif

12th Grade

•

25 Qs

PAS Mulok Komputer

PAS Mulok Komputer

12th Grade

•

25 Qs

komputer akuntansi

komputer akuntansi

12th Grade

•

25 Qs

PROGRAMMING CONCEPTS

PROGRAMMING CONCEPTS

Assessment

Quiz

•

Computers

•

12th Grade

•

Practice Problem

•

Medium

Created by

JOHN ZARATE

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

29 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the correct syntax to declare a variable in Python?

variable x = 5

int x = 5;

x = 5

declare x = 5

Answer explanation

declaring variable in python, don't need to have data type and semi colon ";"

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which data type is mutable in Python?

Tuple

String

List

Integer

Answer explanation

This means we can change an item in a list by accessing it directly as part of the assignment statement

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What does the elif statement do in Python?

Ends the program

Runs a loop

Checks another condition if the previous one is false

Defines a function

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What will print(3 * "hello") output?

hellohellohello

hello * 3

A storage location for data

error

Answer explanation

n Python, the * operator can be used with strings to repeat them a specified number of times.

3 * "hello" means "hello" is repeated 3 times.

So, "hello" * 3 evaluates to "hellohellohello" (without spaces).

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is debugging?

Removing unnecessary comments from code

Fixing errors in a program

Writing new code

Running a program without stopping

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is a valid way to access an element in a list?

list[1]

list(1)

list{1}

list.1

Answer explanation

In Python, elements in a list are accessed using indexing with square brackets ([]).

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

The "if" statement is used for looping.

REYAL

FAKEY

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?