PYTHON

PYTHON

University

15 Qs

quiz-placeholder

Similar activities

Python Quiz

Python Quiz

University

15 Qs

Basic Python

Basic Python

University

20 Qs

BT1 2023

BT1 2023

University

10 Qs

CodeHS Basic Data Structures in Python

CodeHS Basic Data Structures in Python

University

20 Qs

PPS PYTHON QUIZ

PPS PYTHON QUIZ

University

20 Qs

Python_programming_quiz

Python_programming_quiz

University

10 Qs

Python Quiz - 4 Lists,Loops,String Manipulation

Python Quiz - 4 Lists,Loops,String Manipulation

University

15 Qs

Python Round 2

Python Round 2

University

10 Qs

PYTHON

PYTHON

Assessment

Quiz

Computers

University

Hard

Created by

Pushpa RN

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one of these is floor division?

\

\

\\

//

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you insert COMMENTS in Python code?

//

#

  • *

/*

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword is used for function in Python language?

Function

def


Define

Fun

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code?

i = 1

while True:

if i%3 == 0:

break

print(i)   i + = 1

1 2 3

error

1 2

none of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a core data type in Python programming?

Tuples

Lists

Class

Dictionary

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python code snippet?

for i in [1, 2, 3, 4][::-1]:

print (i)

4 3 2 1

error

1 2 3 4

none of the mentioned

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following Python statement?

  1. >>>"a"+"bc"

bc

abc

a

bca

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?