FYCS PYTHON QUIZ

FYCS PYTHON QUIZ

University

30 Qs

quiz-placeholder

Similar activities

Round 3

Round 3

University

25 Qs

Quiz Jaringan Komputer

Quiz Jaringan Komputer

University

26 Qs

Python Programming Quiz

Python Programming Quiz

University

30 Qs

Learn to code 2 review

Learn to code 2 review

1st Grade - Professional Development

26 Qs

ISA - Midterm Exam NOT FINAL

ISA - Midterm Exam NOT FINAL

University

30 Qs

AUDITING IT ENVIRONMENT (MCQ)

AUDITING IT ENVIRONMENT (MCQ)

University

27 Qs

C# Skill Review

C# Skill Review

12th Grade - Professional Development

32 Qs

ITP221-LONG QUIZ

ITP221-LONG QUIZ

University

28 Qs

FYCS PYTHON QUIZ

FYCS PYTHON QUIZ

Assessment

Quiz

Other

University

Hard

Created by

FYCS05 Aarti Chavan

Used 1+ times

FREE Resource

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

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?