In a stack (pile) implementing the LIFO discipline, which element is removed by a pop (dépiler) operation?
Structures De Donnees
Question · Easy
A queue (file) follows which discipline?
In Python, which expression correctly retrieves the value associated with key 'age' in a dictionary d, raising no error if the key is present?
What is the height of a binary tree consisting of a single root node with no children, using the convention that a single node has height 0?
Question · Medium
In a binary search tree (arbre binaire de recherche, ABR), what property holds for every node?
An in-order (infixe) traversal of a binary search tree visits the keys in which order?
A complete binary tree of height h (edge convention) contains at most how many nodes?
Question · Hard
A graph (graphe) in which every edge has a direction is called what?
When representing a graph by an adjacency matrix (matrice d'adjacence) for n vertices, the matrix has which dimensions?
What data structure is typically used to implement a breadth-first search (parcours en largeur, BFS) of a graph?
A depth-first search (parcours en profondeur, DFS) implemented recursively implicitly uses which structure?
In Python, which of the following correctly creates an empty list to be used as a stack?
What is the time complexity of searching for a key in a balanced binary search tree containing n elements?
A leaf (feuille) of a tree is a node that has which property?
Why is testing whether a key is present in a Python dictionary generally faster than testing membership in a list of the same size?
In a graph represented by adjacency lists (listes d'adjacence), what does the list associated with a vertex v contain?
An abstract data type (type abstrait de données) is defined by which of the following?
When pushing the values 3, 7, then 5 onto an initially empty stack and then performing one pop, which value is returned?
A path (chemin) of length 0 in a graph corresponds to what?
When inserting the keys 8, 3, 10, 1 in that order into an initially empty binary search tree, which key becomes the left child of the root?
A prefix (préfixe) traversal of a binary tree visits the nodes in which order?
Which Python operation efficiently removes and returns the first element of a list used as a queue, when using collections.deque?
Which classic algorithm correctly finds the shortest path in a weighted graph with non-negative edge weights?
Algorithmique
The merge sort (tri fusion) algorithm is based on which algorithmic paradigm?
What is the worst-case time complexity of merge sort (tri fusion) on a list of n elements?
Dynamic programming (programmation dynamique) is most appropriate when a problem has which characteristic?
A greedy algorithm (algorithme glouton) builds a solution by doing what at each step?
The coin-change problem (rendu de monnaie) solved by a greedy algorithm guarantees the minimum number of coins only when which condition holds?
What is the worst-case complexity of binary search (recherche dichotomique) on a sorted array of n elements?
Binary search (recherche dichotomique) requires the input array to satisfy which precondition?
Who is credited with inventing the merge sort (tri fusion) algorithm in 1945?
Histoire Informatique
In the RIP routing protocol, the metric used to choose a route is which of the following?
Architecture Systemes Reseaux
The OSPF routing protocol differs from RIP because it selects routes based on what?
In a relational database, what does a primary key (clé primaire) guarantee for a table?
Bases De Donnees
In SQL, which clause is used to retrieve only the rows that satisfy a given condition?
Which SQL statement adds a new record to a table named eleves?
What is the purpose of a foreign key (clé étrangère) in a relational database?
In SQL, a JOIN between two tables typically associates rows based on what?
Who introduced the relational model of databases in 1970?
In SQL, which keyword removes duplicate rows from the result of a SELECT query?
Which SQL aggregate function counts the number of rows in a result?
In a relational database, a tuple (n-uplet) corresponds to what?
What does the following recursive Python function return for fact(4)? def fact(n): if n <= 1: return 1 return n * fact(n - 1)
Langages Et Programmation
What is essential for any recursive function to avoid infinite recursion?
In object-oriented programming (POO) in Python, what is the role of the __init__ method of a class?
In Python object-oriented programming, what does the first parameter self of a method refer to?
Encapsulation (encapsulation) in object-oriented programming refers to which principle?
In the functional programming paradigm (paradigme fonctionnel), a pure function is one that does what?
Loading more…