Search Header Logo

1st Embedded & Ai T

Authored by Manjunatha M

Professional Development

University

Used 2+ times

1st Embedded & Ai T
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is Python?

Python is a high-level programming language.
Python is a type of snake.
Python is a low-level programming language.
Python is a web development framework.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you print something in Python?

Use the print() function, e.g., print('Hello, World!')
Print to the console using log()
Use the echo() function
Display output with output()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What symbol is used to assign a value to a variable in Python?

=
::
=>
==

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function is used to get input from the user in Python?

read()
get_input()
input()
scan()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create a list in Python?

You create a list in Python with the list() function, e.g., my_list = list(1, 2, 3).
You create a list in Python using curly braces, e.g., my_list = {1, 2, 3}.
You create a list in Python by using parentheses, e.g., my_list = (1, 2, 3).
You create a list in Python using square brackets, e.g., my_list = [1, 2, 3].

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print(2 + 3)?

4
6
7
5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does len() function do?

The len() function calculates the sum of numbers in a list.
The len() function checks if an object is empty.
The len() function returns the length of an object.
The len() function converts an object to a string.

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?