Search Header Logo

Les bases de la programmation en Python

Authored by Erwan Capitaine

Computers

University

Used 30+ times

Les bases de la programmation en Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Quelle est la syntaxe correcte pour écrire "Hello World !" en langage Python ?

print("Hello World") 

echo("Hello World");

p("Hello World")

echo "Hello World"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Comment écrire un commentaire en Pyhton ?

//Ceci est un commentaire

/*Ceci est un commentaire*/

#Ceci est un commentaire

"Ceci est un commentaire"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle réponse ne correspond pas à un nom de variable correct ?

MaVariable1

ma_variable1

_maVariable

1ma_variable

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Comment créer une variable "x" avec une valeur de 5 ?

x = 5

5 = x

x = int(5)

x = float(5)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle est l'extension d'un fichier python ?

.py

.ipynb

.pyt

.pyth

6.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Comment créer une variable "x" avec une valeur de 21.6 ?

x = 21.6

21.6 = x

x = int(21.6)

x = float(21.6)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Comment créer une fonction en Python ?

create myFunction():

def myFunction():  

function myfunction():

while myfunction():

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers