PYTHON

PYTHON

University

30 Qs

quiz-placeholder

Similar activities

Compro. Final 1/64 part1

Compro. Final 1/64 part1

University

25 Qs

TM103 - Ch.1 Quiz

TM103 - Ch.1 Quiz

University

25 Qs

gamez tik7

gamez tik7

12th Grade - University

25 Qs

CHFI Module 3 Review

CHFI Module 3 Review

University

25 Qs

Parts of a Computer #2 - Cables and Ports

Parts of a Computer #2 - Cables and Ports

6th Grade - Professional Development

25 Qs

UPRICCNASEP2

UPRICCNASEP2

University

25 Qs

ITS301-Unit1 OHS Trial Test 2

ITS301-Unit1 OHS Trial Test 2

University

25 Qs

Computer Software Quiz

Computer Software Quiz

University

25 Qs

PYTHON

PYTHON

Assessment

Quiz

Computers

University

Hard

Created by

Niranjan C

Used 12+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?