logo

Crowdly

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

Looking for Programing with Python / Programmation avec Python (202400-META-IDSI1121-BBA1) test answers and solutions? Browse our comprehensive collection of verified answers for Programing with Python / Programmation avec Python (202400-META-IDSI1121-BBA1) at moodle.essec.fr.

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

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%
View this question
Which of the following statements will return an error
0%
100%
100%
0%
View this question
I want to simulate a dice. Which command should I use?
100%
0%
0%
0%
View this question
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%
View this question

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%
View this question
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%
View this question

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%
View this question
What will be the value of x after the following statements executes?

x = int(92.23)

0%
0%
100%
0%
View this question
What will the value of x be after the following statements execute?

x = 5

x = x**2 + x - 2

0%
100%
0%
0%
View this question
What is the value of the following expression?

42 % 2

0%
0%
100%
View this question

Want instant access to all verified answers on moodle.essec.fr?

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