Python Quiz 1

Python Quiz 1

Professional Development

30 Qs

quiz-placeholder

Similar activities

Review MySQL

Review MySQL

Professional Development

25 Qs

Institute of Marine Technology,Bagerhat Portative Assessment

Institute of Marine Technology,Bagerhat Portative Assessment

Professional Development

25 Qs

UTS Informatika X.DKV A

UTS Informatika X.DKV A

Professional Development

25 Qs

Front End Forge Final

Front End Forge Final

Professional Development

25 Qs

Pak Rudi

Pak Rudi

Professional Development

25 Qs

UTS Teori Bahasa dan Automata

UTS Teori Bahasa dan Automata

Professional Development

25 Qs

Human and Computer Interaction Part 2

Human and Computer Interaction Part 2

University - Professional Development

25 Qs

C Language Test 3

C Language Test 3

Professional Development

25 Qs

Python Quiz 1

Python Quiz 1

Assessment

Quiz

Computers

Professional Development

Practice Problem

Hard

Created by

Raphael Okai

Used 5+ 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

30 sec • 1 pt

Which of the following is a valid way to comment in Python?

// This is a comment

# This is a comment

<!-- This is a comment -->

 /* This is a comment */

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code snippet?

2.5

2

2.0

2.00

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

15

"555"

8

"333"

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements is true about Python variables?

Variables must be declared before they are used.

Variables can contain only letters.

Python variables are case-sensitive.

Python variables cannot be reassigned.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Find the output of the below python code:

-3

Error

2

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Find the output of the below python code:

Error

0o123123

0o270o27

0o27027

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Find the output of the below python code:

CodeCamp

Empty String

True

False

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?