Search Header Logo

FYCS PYTHON QUIZ

Authored by FYCS05 Aarti Chavan

Other

University

Used 1+ times

FYCS PYTHON QUIZ
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data type in Python is immutable?

List

Dictionary

Tuple

Set

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct way to create a dictionary in Python?

dict = {key1, key2, key3}

dict = [key1:value1, key2:value2]

dict = {key1:value1, key2:value2}

dict = (key1:value1, key2:value2)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of print("5" + "10")?

510

15

5 10

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a formal parameter in Python?

A variable used in the function call

A value passed to the function

A variable defined in the function definition

A built-in function

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following represents an actual parameter?

Variable in the function header

Placeholder in the function body

Argument passed to the function when called

Function name

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is correct about keyword arguments?

They are passed without any order.

They must be passed before positional arguments.

They are passed in the order defined in the function.

They allow skipping arguments while calling a function.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you pass a positional argument to a function?

By assigning it a value

By specifying the variable name

By providing it in order without naming

None of the above

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?