PYTHON-MCQ

PYTHON-MCQ

University

20 Qs

quiz-placeholder

Similar activities

BFF2003 QUIZ(3)

BFF2003 QUIZ(3)

University

25 Qs

Final Exam CSC 190 MC Review #2

Final Exam CSC 190 MC Review #2

10th Grade - University

20 Qs

Python

Python

University

15 Qs

Solving Inequalities with Negative Numbers

Solving Inequalities with Negative Numbers

9th Grade - University

20 Qs

python

python

University

16 Qs

Bertelsmann AI Track Quiz Initiative #3

Bertelsmann AI Track Quiz Initiative #3

University - Professional Development

20 Qs

ÔN TIN GK 2

ÔN TIN GK 2

University

15 Qs

ECH_Đào tạo tin học_Word

ECH_Đào tạo tin học_Word

KG - Professional Development

20 Qs

PYTHON-MCQ

PYTHON-MCQ

Assessment

Quiz

Mathematics

University

Medium

Created by

Senthil R

Used 4+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used for function in Python language?

Function

Fun

Define

def

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a mutable data type in Python?

String

Integer

List

Tuple

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following functions is a built-in function in python?

factorial()

print()

seed()

sqrt()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python expression if x=56.236?

print("%.2f"%x)

56.236

56.23

56.00

56.24

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

len(["hello",2, 4, 6])

error

6

4

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

print("abc. DEF".capitalize())

Abc. def

abc. def

Abc. Def

ABC. DEF

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

  1. >>>list1 = [1, 3]

  2. >>>list2 = list1

  3. >>>list1[0] = 4

  4. >>>print(list2)

[1, 4]

[1, 3, 4]

[4, 3]

[1, 3]

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?

Discover more resources for Mathematics