logo

Crowdly

CSIT110 (DB125) Fundamental Programming with Python

Looking for CSIT110 (DB125) Fundamental Programming with Python test answers and solutions? Browse our comprehensive collection of verified answers for CSIT110 (DB125) Fundamental Programming with Python at moodle.uowplatform.edu.au.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Select the correct code

For each question consider the latest list created/modified as a result of  the previous question 8 marks

View this question
Program 1:

print("dog")

print("cat")

print("kangaroo")

Program 2:

print("dog", end="*")

print("cat", end="*")

print("kangaroo", end="*")

Program 3:

print("dog", end="XYZ")

print("cat", end="XYZ")

print("kangaroo", end="XYZ")

Program 4:

print("dog", end="")

print("cat", end="")

print("kangaroo", end="")

Program 5:

print("dog", end=", ")

print("cat", end=", ")

print("kangaroo", end=".")

print(2000)

Program 6:

print("dog", end=", ")

print("cat", end=", ")

print("kangaroo", end=".")

print()

print(2000)

Output A:

dogXYZcatXYZkangarooXYZ

Output B:

dogcatkangaroo

Output C:

dog, cat, kangaroo.

2000

Output D:

dog

cat

kangaroo

Output E:

dog*cat*kangaroo*

Output F:

dog, cat, kangaroo.2000

Output G:

*dog*cat*kangaroo*

View this question

What is the value of z after execution of the  following code?

    

x = 12              

y = 3           

z = x % y

View this question
What will be the value of 'x' after this code snippet?

x = 5         

x = x + 3
0%
0%
0%
View this question
What is the output of the while loop below?

i=0

while(i<5):

    print (" i is "+ str(i))

0%
0%
0%
View this question

What is the output of the following Python code?

x = 'ab'

for i in x:   

     print(i.upper())

View this question

What is the value of a?       

 a=7//3

View this question

The  while loop is executed repeatedly as long as a particular condition: 

View this question
In Python, how do you write a single-line comment?
0%
0%
0%
View this question
What is the purpose of the 'range' function in a 'for' loop in Python?
0%
0%
0%
View this question

Want instant access to all verified answers on moodle.uowplatform.edu.au?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!