MCQ Python

MCQ Python

Vocational training

20 Qs

quiz-placeholder

Similar activities

Analisis Data dengan Python

Analisis Data dengan Python

10th Grade

20 Qs

Quiz sobre Django e SQLite

Quiz sobre Django e SQLite

KG - University

15 Qs

Mengenal Pemrograman Kecerdasan Artifisial

Mengenal Pemrograman Kecerdasan Artifisial

10th Grade

20 Qs

Examen primera unidad  Progra 5to Baco/PC

Examen primera unidad Progra 5to Baco/PC

12th Grade

16 Qs

Python Mod 2 Sec 4

Python Mod 2 Sec 4

11th Grade

15 Qs

Kuis Bahasa Pemrograman Python Kelas 11 Kelompok 1

Kuis Bahasa Pemrograman Python Kelas 11 Kelompok 1

11th Grade

20 Qs

ATIVIDADES P5.JS I

ATIVIDADES P5.JS I

1st Grade

20 Qs

Internet and App script

Internet and App script

5th Grade - University

22 Qs

MCQ Python

MCQ Python

Assessment

Quiz

Information Technology (IT)

Vocational training

Hard

Created by

Zoulkifle Salifou

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

20 sec • 10 pts

Among these programming paradigms, which ones are not found in python?

Imperative

Descriptive

Reactive

Object Oriented

Functionnal

Answer explanation

Python prend en charge plusieurs paradigmes de programmation, notamment l'impératif, l'orienté objet et le fonctionnel. Cependant, les paradigmes descriptif et réactif ne sont pas directement pris en charge.

2.

FILL IN THE BLANK QUESTION

20 sec • 10 pts

What is the name given to a function defined in a class?

Answer explanation

Fait amusant : En Python, même les méthodes sont des objets ! On peut les assigner à des variables, les passer comme arguments, ou même les modifier dynamiquement.

3.

MULTIPLE CHOICE QUESTION

20 sec • 7 pts

According to the following statement: "a = {}", what type of object is a?

A dictionary.

A list.

An array.

A string.

Answer explanation

Les dictionnaires en Python sont optimisés pour la recherche rapide des valeurs grâce à un mécanisme appelé table de hachage (hash table), ce qui les rend extrêmement performants pour stocker et récupérer des données !

4.

MULTIPLE CHOICE QUESTION

20 sec • 15 pts

Among these methods, which one allows to make a class displayable by the print function?

append

__repr__

__init__

__getattr__

Answer explanation

Si tu ouvres une session Python et tapes simplement p au lieu de print(p), c’est repr qui est utilisé automatiquement !

5.

MULTIPLE SELECT QUESTION

20 sec • 10 pts

Which of these words are reserved by python?

lambda

goto

catch

is not

yield

Answer explanation

Python a exactement 35 mots-clés réservés en version 3.10. Tu peux tous les afficher avec :

```

import keyword

print(keyword.kwlist)

```

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

An instruction using the "or" operator gives True if:

Both operands are True.

At least one of the two operands is True.

Both operands are False.

Answer explanation

Une astuce courante est d'utiliser or pour définir une valeur par défaut

7.

MULTIPLE CHOICE QUESTION

10 sec • 5 pts

Python is a high-level language?

True

False

Answer explanation

Eh... Si tu trouves pas ça là hmmm...

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?