Python Basics Quiz

Python Basics Quiz

Professional Development

15 Qs

quiz-placeholder

Similar activities

HTML_CSS_JAVASCRIPT

HTML_CSS_JAVASCRIPT

University - Professional Development

20 Qs

TEST PAPER-TUPLE

TEST PAPER-TUPLE

Professional Development

10 Qs

Python Week 1

Python Week 1

Professional Development

15 Qs

Python Week 2

Python Week 2

Professional Development

15 Qs

Prueba python vacacional

Prueba python vacacional

Professional Development

15 Qs

Python Basics

Python Basics

Professional Development

10 Qs

PyDA Kemenkeu

PyDA Kemenkeu

Professional Development

10 Qs

Codeing

Codeing

Professional Development

10 Qs

Python Basics Quiz

Python Basics Quiz

Assessment

Quiz

Other

Professional Development

Medium

Created by

SANJANA PRASAD

Used 6+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output of type(10) in Python?

<class 'str'>

<class 'float'>

<class 'int'>

<class 'bool'>

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid Boolean value in Python?

TRUE

true

False

Yes

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the result of: 3 > 2 and 5

A) False

B) True

C) 0

D) SyntaxError

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a comparison operator in Python?

==

!=

=

>=

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

6. What is the output of 10 == '10'

A) True

B) False

C) TypeError

D) None

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of bool(0)?

True

False

0

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement is used to stop the execution of the loop and continue with the next iteration?

return

break

continue

exit

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?