logo

Crowdly

Programing with Python / Programmation avec Python (202400-META-IDSI1121-BBA1)

Шукаєте відповіді та рішення тестів для Programing with Python / Programmation avec Python (202400-META-IDSI1121-BBA1)? Перегляньте нашу велику колекцію перевірених відповідей для Programing with Python / Programmation avec Python (202400-META-IDSI1121-BBA1) в moodle.essec.fr.

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

Complete the code below (by replacing the '??' with the correct value) to return the output

Bob Smith

name = "Bob"

surname = " Smith"

print(name ?? surname)

100%
0%
0%
0%
Переглянути це питання
Which of the following statements will return an error
0%
100%
100%
0%
Переглянути це питання
I want to simulate a dice. Which command should I use?
100%
0%
0%
0%
Переглянути це питання
I am making several experiments with a code that relies on random numbers. I want my colleagues to reproduce my code to check if we get the same results. However, we need to take care of differences in results that may solely be caused by the randomness involved in my experiment. Which command can I use to ensure reproducibility of my code?
0%
0%
0%
100%
Переглянути це питання

What will the following code print out?

x = 0

if x < 2:

print('small')

elif x <10:

print('medium')

else:

print('large')

100%
0%
0%
0%
Переглянути це питання
What do we do to a Python statement that is immediately after an if statement to indicate that the statement is to be executed only when the if statement is true?
0%
0%
0%
100%
Переглянути це питання

What is true about the following code segment?

if x== 5:

print('Is 5')

print('Is still 5')

print('x is 5')

0%
0%
100%
0%
Переглянути це питання
What will be the value of x after the following statements executes?

x = int(92.23)

0%
0%
100%
0%
Переглянути це питання
What will the value of x be after the following statements execute?

x = 5

x = x**2 + x - 2

0%
100%
0%
0%
Переглянути це питання
What is the value of the following expression?

42 % 2

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

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

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