Search Header Logo

Python Fundamentals Assessment

Authored by Mohamed elsalam

Fun

10th Grade

Used 2+ times

Python Fundamentals Assessment
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the basic data types in Python?

string, number, boolean, collection

int, float, str, bool, list, tuple, set, dict

char, byte, array, object

integer, decimal, character, map

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a variable in Python?

var variable_name = value

variable_name : value

You declare a variable in Python by using the syntax: variable_name = value.

let variable_name = value

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the difference between a list and a tuple?

A list is mutable; a tuple is immutable.

A list is created using parentheses; a tuple is created using square brackets.

A list is a fixed size; a tuple can grow or shrink in size.

A list can only contain numbers; a tuple can contain any data type.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access elements in a list?

Elements can be accessed using list.at(index).

Use list.get(index) to access elements in a list.

Use list[index] to access elements in a list.

Access elements by calling list[index] method.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a control flow statement?

A control flow statement is a type of variable in programming.

A control flow statement is a construct that controls the execution order of statements in a program.

A control flow statement is a function that returns a value.

A control flow statement is a method for defining data structures.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the use of 'if' statements in Python.

'if' statements are used to declare variables in Python.

'if' statements in Python are used for conditional execution of code blocks.

'if' statements are used to define functions in Python.

'if' statements are only for looping through lists in Python.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a function in Python?

A function in Python is a built-in data structure.

A function in Python is a way to store data permanently.

A function in Python is a type of variable.

A function in Python is a reusable block of code defined using the 'def' keyword.

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?