Search Header Logo

Sjmit-Q1-[Workshop-MAR-25]

Authored by Manjunatha M

Others

12th Grade

Used 2+ times

Sjmit-Q1-[Workshop-MAR-25]
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

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

10 = x

x = 10

x : 10

let x = 10

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following is not a built-in data type in Python?

tuple

list

array

dictionary

3.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What will be the output of the expression 3 * 2 ** 2?

6

12

8

10

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you create a list in Python?

You create a list in Python using angle brackets, e.g., my_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 using square brackets, e.g., my_list = [1, 2, 3].

You create a list in Python using parentheses, e.g., my_list = (1, 2, 3).

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which control structure is used to execute a block of code multiple times?

Loop

Condition

Variable

Function

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What keyword is used to define a function in Python?

function

procedure

def

method

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the output of the following code: print(type(5))?

Int

Float

Char

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?