PYTHON

PYTHON

University

30 Qs

quiz-placeholder

Similar activities

Prelim Exam - Comp Vision

Prelim Exam - Comp Vision

University

25 Qs

Python Programming

Python Programming

University

25 Qs

Mock 2nd MCQ Python

Mock 2nd MCQ Python

University

25 Qs

Python Operators

Python Operators

University

35 Qs

String

String

10th Grade - University

30 Qs

Quis Algoritma dan Pemrograman

Quis Algoritma dan Pemrograman

University

29 Qs

Gmetrix Python

Gmetrix Python

9th Grade - Professional Development

31 Qs

BASIC PYTHON

BASIC PYTHON

University

30 Qs

PYTHON

PYTHON

Assessment

Quiz

Computers

University

Hard

Created by

Niranjan C

Used 12+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which character is used in Python to make a single line comment?

  1. /

  1. //

  1. #

!

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of the following Python code snippet?

print(10/2)

5.0

5

2.0

2

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid Python data type?

Integer

Float

String

Boolean

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'len()' function in Python do?

Returns the total number of elements in a list

Returns the largest element in a list

Returns the sum of all elements in a list

Returns the average of all elements in a list

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the method inside the class in python language?

  1. Object

  1. Function

  1. Attribute

Argument

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following declarations is incorrect?

  1. _x = 2

  1. __x = 3

  1. __xyz_ = 5

None of these

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following operators is the correct option for power(ab)?

  1. a ^ b

  1. a**b

  1. a ^ ^ b

  1. a ^ * b

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?