PYTHON

PYTHON

University

30 Qs

quiz-placeholder

Similar activities

Flow Control in Python

Flow Control in Python

University

33 Qs

Bridge Course - Screening Test

Bridge Course - Screening Test

10th Grade - Professional Development

30 Qs

Computer Pretest2(Python Grade7_t1)

Computer Pretest2(Python Grade7_t1)

2nd Grade - University

30 Qs

PYTHON CONTERST 3

PYTHON CONTERST 3

University

25 Qs

python_quiz

python_quiz

University

25 Qs

Python Basics till Logical Operators

Python Basics till Logical Operators

University

35 Qs

Python - Unit Test 2

Python - Unit Test 2

9th Grade - University

25 Qs

Python Programming Basics 1

Python Programming Basics 1

University

25 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?