logo

Crowdly

CSIT110 (DB125) Fundamental Programming with Python

Шукаєте відповіді та рішення тестів для CSIT110 (DB125) Fundamental Programming with Python ? Перегляньте нашу велику колекцію перевірених відповідей для CSIT110 (DB125) Fundamental Programming with Python в moodle.uowplatform.edu.au.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

Select the correct code

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

Переглянути це питання
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*

Переглянути це питання

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

    

x = 12              

y = 3           

z = x % y

Переглянути це питання
What will be the value of 'x' after this code snippet?

x = 5         

x = x + 3
0%
0%
0%
Переглянути це питання
What is the output of the while loop below?

i=0

while(i<5):

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

0%
0%
0%
Переглянути це питання

What is the output of the following Python code?

x = 'ab'

for i in x:   

     print(i.upper())

Переглянути це питання

What is the value of a?       

 a=7//3

Переглянути це питання

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

Переглянути це питання
In Python, how do you write a single-line comment?
0%
0%
0%
Переглянути це питання
What is the purpose of the 'range' function in a 'for' loop in Python?
0%
0%
0%
Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на moodle.uowplatform.edu.au?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!