Search Header Logo

PYTHON QUIZ 1

Authored by Sandhya .

Computers

University

Used 1+ times

PYTHON QUIZ 1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Who developed Python?

Dennis Ritchie

Guido van Rossum

James Gosling

Bjarne Stroustrup

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to output data to the screen in Python?

scanf( )

input( )

print( )

write( )

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct comment in Python?

// This is a comment

/* This is a comment */

<!-- This is a comment -->

# This is a comment

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid variable name in Python?

variable1

1variable

variable-name

class

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of type(10)?

<class 'int'>

int

<int>

Integer

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of 3 ** 2 in Python?

6

9

8

5

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a logical operator in Python?

and

&&

&

|

Access all questions and much more by creating a free account

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

Already have an account?

Discover more resources for Computers