Computer Science Manor Use Code Good Morning today is Friday 3/20 DL-Quiz 1 Manzoor
Good Morning today is Friday 3/20
DL-Quiz 1
Instructions:There will be 10 questions, write or copy code into Codeskulptor and give the result on provided area.
Note: Attendance will be marked on quiz submission.
What will be output/result of the following python code?
Note: Type these codes into codeskulptor and answer the following questions.
Example:
a=10
b=40
print (a+b)
Output/Result is 50
Q1.
a=10
b=20
print (a)
Output:
Q2.
a=2.5
b=3
print(a+b)
Output:
Q3.
x=y=z=10
print(x+y+z)
Output:
Q4.
x=y=z=10
print(x*y+z)
Output:
Q5.
x=y=z=10
print(x*y*z)
Output:
Q6.
x=y=z=10
print(x*y)
Output:
Q7.
a=10
b=20
print (b-a)
Output:
Q8.
a=10
b=20
print (a*a+a)
Output:
Q9.
a=10
b=20
print (a*b+a)
Output:
Q10.
a=10
b=20
print (a+b+10)
Output:
DL-Quiz 1
Instructions:There will be 10 questions, write or copy code into Codeskulptor and give the result on provided area.
Note: Attendance will be marked on quiz submission.
What will be output/result of the following python code?
Note: Type these codes into codeskulptor and answer the following questions.
Example:
a=10
b=40
print (a+b)
Output/Result is 50
Q1.
a=10
b=20
print (a)
Output:
Q2.
a=2.5
b=3
print(a+b)
Output:
Q3.
x=y=z=10
print(x+y+z)
Output:
Q4.
x=y=z=10
print(x*y+z)
Output:
Q5.
x=y=z=10
print(x*y*z)
Output:
Q6.
x=y=z=10
print(x*y)
Output:
Q7.
a=10
b=20
print (b-a)
Output:
Q8.
a=10
b=20
print (a*a+a)
Output:
Q9.
a=10
b=20
print (a*b+a)
Output:
Q10.
a=10
b=20
print (a+b+10)
Output:
Comments
Post a Comment