module 0

module 0

12th Grade

15 Qs

quiz-placeholder

Similar activities

Fundamentals of Python Programming

Fundamentals of Python Programming

12th Grade

15 Qs

Python

Python

9th - 12th Grade

20 Qs

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

Kuis Uji Pemahaman Python Variabel, Sintaks Dasar, Type Data

11th Grade - University

16 Qs

2.00

2.00

9th - 12th Grade

20 Qs

แข่งขันcodingม.ต้น

แข่งขันcodingม.ต้น

12th Grade - University

15 Qs

Laravel Entry Assessment

Laravel Entry Assessment

12th Grade

14 Qs

Selection Programming_If condition

Selection Programming_If condition

8th Grade - University

15 Qs

eXtensible Markup Language

eXtensible Markup Language

12th Grade - University

12 Qs

module 0

module 0

Assessment

Quiz

Information Technology (IT)

12th Grade

Hard

Created by

dylan dylan

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What is an algorithm?

A set of instructions to solve a problem.

A data structure used to store data.

A programming language syntax.

A random set of commands.

2.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which of the following is NOT a property of a good algorithm?

Precision

Ambiguity

Completeness

Simplicity

3.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What does the `len()` function in Python return?

The length of the code.

The total number of characters in a string.

The number of elements in a list, string, or tuple.

The number of loops in a program.

4.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

In Python, which data type is mutable?

Strings

Tuples

Integers

Lists

5.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What will be the output of the following code? ```python x = [1, 2, 3] y = x y.append(4) print(x) ```

[1, 2, 3]

[1, 2, 3, 4]

[1, 2, 3] and an error

An error occurs

6.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Which Python statement will correctly loop through a list?

`for x in range(list):`

`for x in list:`

`while x in list:`

`for x in list.length:`

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

What does the following function do? ```python def mystery(a, b): return a + b if a > b else b - a ```

Adds a and b when a > b; subtracts otherwise.

Always adds a and b.

Always subtracts b from a.

Compares and returns the larger value.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Information Technology (IT)