0% found this document useful (0 votes)
434 views

Interaction ID Type Resul T Response: Return To Progress Summary

The document provides details of multiple choice questions related to Python scripting level 1. It includes questions about print statements, code blocks, built-in functions, data types, exceptions, and more. The questions are part of an assessment to test Python scripting skills.

Uploaded by

Kunwar Rawat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
434 views

Interaction ID Type Resul T Response: Return To Progress Summary

The document provides details of multiple choice questions related to Python scripting level 1. It includes questions about print statements, code blocks, built-in functions, data types, exceptions, and more. The questions are part of an assessment to test Python scripting skills.

Uploaded by

Kunwar Rawat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Objective/Interaction detail for "Python Scripting L1" Return to Progress Summary

Interaction ID Type Resul Response


t

What is output of the print statement? A = Multiple 0 1


[(10,20,30,40,50), Choice
["Wipro","Oracle","Microsoft"]] print type(A[1])

Which of the following code is correct? Multiple 1 5


Choice

What will be displayed by the following code? Multiple 1 7


def f1():     global x     x = x + 2     print(x) x = 1 Choice
f1() print(x)

What block of statements are executed when Multiple 0 1


there is no error triggered in the program? Choice

___________ translates high-level language Multiple 0 1


program into machine language program. Choice

What will be displayed by the following code? Multiple 1 4


def f1(x = 1, y = 2):     x = x + y     y += 1     Choice
print(x, y) f1()

What is the result of 10//3 operation in python Multiple 1 2


Choice

Which is the python built-in repository of Multiple 1 3


package collection? Choice

What is the command used to read values from Multiple 1 4


the user in interactive way? Choice

What is the type specification of the command Multiple 0 2


line arguments by default? Choice

Python programming language was created by Multiple 1 4


____________. Choice

What environment variable is used to define Multiple 1 2


the module search path? Choice
what method is used to position the file pointer Multiple 1 1
inside a file? Choice

What is the extension of python byte code file Multiple 1 3


which is created from the execution of python Choice
source file?

What will be displayed by the following code? Multiple 0 2


def f1(x = 1, y = 2):     return x + y, x - y x, y = Choice
f1(y = 2, x = 1) print(x, y)

What is the output of the following statement? Multiple 1 2


A=range(10,100,10) print A Choice

What gets printed? boxes = {} jars = {}crates = Multiple 0 3


{}boxes['cereal'] = 1boxes['candy'] = 2 Choice
jars['honey'] = 4crates['boxes'] =
boxescrates['jars'] = jars print
len(crates[boxes])

Each time a function is invoked, the system Multiple 1 3


stores parameters and local variables in an Choice
area of memory, known as _______, which
stores elements in last-in first-out fashion.

What default exception block is defined to deal Multiple 1 4


with all the unhandled exceptions in program? Choice

In order to store values in terms of key and Multiple 1 3


value pair, what type of datatype is suggested? Choice

You might also like