0 ratings 0% found this document useful (0 votes) 2 views 21 pages Field Training (Python) Updated
The document outlines the details of a final exam for a Python course at Assiut University, including the exam's duration, total marks, and the level of the course. It contains various questions related to Python programming concepts, data types, and error handling. Additionally, it includes instructions for submitting responses and a disclaimer regarding data privacy and security.
AI-enhanced title and description
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here .
Available Formats
Download as PDF or read online on Scribd
Go to previous items Go to next items
lle G33
12:00-2:00
17/1/2023
Python ITI
Faculty of Computers & Information, Assiut University
Course code: (Add the course code)
3rd Level
Final Exam
Duration: 2 hours
Total Marks: 50
Reviewer: (Add the name)
This exam for the following program(s): (Add the program's name(s))
Hi, Islam. When you submit this form, the owner will see your name and email address.
* Required
1
(88 ysJl) welll awtll *
Enter your answervugball aay *
Enter your answer
otal *
sul
wl
QW
2013 gull
2014 all
2015 ail
2016 aulJI
2017 all
2018 ailJl
2019 gullgoliyall *
ale
al
pelino elS3
5
esall ais *
Select your answer v
6
outa ay *
Enter your answer
(Gwolell 8)9 Wall Sly asalyo Cros 35) o9SUI*
Enter your answerpython has Built-in Data Types
(1 Point)
False
python is an compiled language
(1 Point)
True
output of print ‘hi fei’
(1 Point)
hi feiPython is loosely typed language
(1 Point)
False
Output of True and False
(1 Point)
Using python2 what the output of print("Hello, World”)
(1 Point)
SyntaxError: invalid syntaxfl print(2 and 1)
output of a
(1 Point)
True
False
Used to multi line string
(1 Point)
1 | nane = "information technology institute”
2 | name. capitatize()
output of 5 prine(nane)
(1 Point)
information technology institute
None1
Which used for return True if a equals b
(1 Point)
function used to convert to intager
(1 Point)
© intiage)
float(age)
str(age)
19 1 #output of
2 print(range(1,10,2))
(1 Point)
range(1, 10, 2)
123456789
13579110 1 |#output of
2 |for i in range(10):
Question 3 jit (i == 5):
(1 Point) 4 |break
print (i)
IndentationError: expected an indented block after for statement on line 3
1 |) doutput of
Question 2 for i in range(19):
(1 Point) 3 if (i = 5):
4 continue
5 « print(i,end=*
01234
0123456789
Output of True or False
(1 Point)
Falsetuple is Immutable list
(1 Point)
False
1 #output of
Question 2 t=(1)
(1 Point) 3 print(t)
en
ay
None
List is A collection of same data types
(1 Point) oO
Truetuple is A collection of various data types
(1 Point)
O Te
False
5 1 Ij #output of
2 newList = [1,"hi', True]
Question 3 print (newList[3])
(1 Point) 4 print(newList(1])
syntaxError
neBETOE I Iecoof ene)
True \n hi
ee 1 fj foutput of
2 newList = [1,*hi', True]
Question 5 [Link]()
(1 Point) 4 print(newList)
ean
("hi True]
Chi, True]function used to convert to float
(1 Point)
intiage)
eas
strlage
30 1 fj voutput of
; newlist = [1,'hi', True]
ani 12 = [1,"hi', True, ‘test"]
newList+12
print(newList)
a1
rue, 1, ‘hi, True, ‘test’
‘Type€rror: unsupported operand type(s) for +: list’ and ‘list’
None of above
1 fj #to catt this function
2 def doSum(**kwargs) :
3
Question
i for k in kwargs:
(1 Point)
‘4 print(kwargstk])
SESE a=p
doSum(tx=1y=2))
doSum({'x'1,7:2))output of 16%5 is
(1 Point)
35
output of 16 //5 is
(1 Point)
35
Which used for return True if a not equals
(1 Point)Errors may be
(1 Point)
Syntax Errors
Runtime Errors
Logical Errors
36
Runtime Errors handled by
(1 Point)
if statment
all of above
Logical Errors handled by
(1 Point)
if statment
try except
all of the abovePython identifiers can Contain Punctuations Characters
(1 Point)
True
A Python identifier doesn’t be one of these words
(1 Point)
Name
Grade
Choose error type in the following code
(1 Point)
Exception
None of the aboveWhich of The following are some examples of invalid identifiers:
(1 Point)
wordCount
[Link]
won't work
42
function used to get variable type
(1 Point)
list(var)
print(var)
4
Which of the following is Falsy Values
(1 Point)
Ss)
‘asd’
12Output of min(4.4,5,16) is
(1 Point)
You have
mylist = ['C’, “JavaScript
“Python”, “Java’, “php"];
what the output of
print([Link](4))
(1 Point)
c
Java
javascript46
Which of the following A key: value comma separated elements Data Structure
(1 Point)
list
Tuple
4
To get dictionary keys which method of the following used
(1 Point)
Items
update4g
python advanced datatype Same as Lists but are immutable
(1 Point)
Dictionary
List
a
output of Len((1, 2, 3)) is
(1 Point)
2
Which allows you to logically organize your Python code? Grouping related cod
e into a file makes the code easier to understand and use
(1 Point)
Function
fileoutput of L = [ x**2 for x in range(10) if x%2 =
(1 Point)
{0, 2, 18, 36, 64]
In python everything is an__.
(1 Point)
Variable,
Class.
Python identifiers can Contain ‘_’
(1 Point)
FalsePython is Case Sensitive Language
(1 Point)
False
A Python identifier can contain reserved words
(1 Point)
True
Used to single line comment
(1 Point)Python identifiers can Contain digits
(1 Point)
False
(Send me an email receipt of my responses
‘This content is created by the owner of the form. The data you submit will be sent to the form owner. Microsoft is not
responsible for the privacy or security practices ofits customers, including those of this form owner. Never give out your
password,
Powered by Microsoft Forms | Privacy and cookies (https//qo. microsoft comyfwlink/o/linkid=857875) | Terms of use
{thitps//[Link] com/fwlink/p/?Linkld=2083423)