Quiz 2 Internship on Fundamentals of Python

Quiz 2 Internship on Fundamentals of Python

Professional Development

15 Qs

quiz-placeholder

Similar activities

QGIS

QGIS

Professional Development

11 Qs

Warid prepaid 2

Warid prepaid 2

Professional Development

10 Qs

A VOS OBJECTIFS !

A VOS OBJECTIFS !

Professional Development

10 Qs

BSD WARID

BSD WARID

Professional Development

10 Qs

EC3492_DSP_IIR FILTER DESIGN

EC3492_DSP_IIR FILTER DESIGN

Professional Development

20 Qs

HACKATHON HUSTLE(ROUND 2)

HACKATHON HUSTLE(ROUND 2)

Professional Development

20 Qs

Python-1

Python-1

Professional Development

11 Qs

les métiers de l'Accueil

les métiers de l'Accueil

Professional Development

11 Qs

Quiz 2 Internship on Fundamentals of Python

Quiz 2 Internship on Fundamentals of Python

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Dr. Lakshmi Bhaskar Bhaskar

Used 9+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the definition for packages in Python?

A set of main modules

A folder of python modules

A number of files containing Python definitions and statements

A set of programs making use of Python modules

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the maximum possible length of an identifier in Python?

79 characters

31 characters

63 characters

none of the mentioned

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following Python program?

error

0 1 2 0

0 1 2

none

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To open a file c:\scores.txt for reading, we use _____________

infile = open(“c:\scores.txt”, “r”)

infile = open(“c:\\scores.txt”, “r”)

infile = open(file = “c:\scores.txt”, “r”)

infile = open(file = “c:\\scores.txt”, “r”)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following Python code will print True?

a = foo(2)

b = foo(3)

print(a<b)

Media Image
Media Image
Media Image
Media Image

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function overloads the + operator?

__add__()

__plus__()

__sum__()

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Only problems that are recursively defined can be solved using recursion.

True

False

May be

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?