Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

uestion 1 ) Choose the correct answer for the following. [ 3 0 marks ] Which of the following statement prints hellolexampleltest.txt ? A .

uestion 1) Choose the correct answer for the following. [30 marks] Which of the following statement prints hellolexampleltest.txt?
A. print("hellol"examplel"test.txt")
B. print("hellollexamplelltest txt")
C. print("hello 'example'Ttest.txt")
D. print("hellolexampleltest.bxt")
What will be the output of the following Python code?
i=1
while True:
ifi%3=o:
break
print (i)2
i+=1
A. Do nothing
B.123
C. Error
D.12
What will be the output of the following Python code?
'abcd"
in range (len(x)) :
int(i)
34
B.0123
C. abcd
D. error
at is the output of the following code:
a=4.5
b=2
print (a??b)
B. Error
C.2.25
D.2.0
A.2
What is the output of the following code?
A=4.5
B=2
print (A??B)
A.2
B.2.0
C.2.25
D.2.5
What is the output after the following statement executes: print(math.floor(-6.3)+ math.ceil(2.7)- int(-6.2))
A.1
B.2
C.-2
D. None
hat will be the output of the following Python code snippet?
x=2
for i in range (x) :
x-=2
print (x)
Error
B.
C.123
D.-2
alue of the expression 7-14%7+2 is:
7
B.9
C.4
D.5
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Have I incorporated my research into my outline effectively?

Answered: 1 week ago