Looking for Qualité de développement S2 test answers and solutions? Browse our comprehensive collection of verified answers for Qualité de développement S2 at cours.iut-orsay.fr.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
Où doit-on écrire la documentation pour utilisateur en C++ ?
Où doivent se trouver les fichiers suivants ?
Voici une méthode qui ne lance pas une erreur/exception.
void printRectangleArea(double width, double height);
Choisir les éléments à ajouter au bloc principal de documentation de cette méthode en Doxygen.
Quels sont les prérequis de code.o la deuxième fois que nous exécutons make ?
Voici un morceau de code d'un makefile.
-include *.d
code.o: code.cpp g++ -c code.cpp -MMD
Voici les directives include de code.cpp:
#include <fstream.h>#include "stream.h"
Quels sont les prérequis de code.o la première fois que nous exécutons make ?
Parmi les phrases suivantes, quelles sont les phrases qui ne devraient pas être dans un README professionnel ?
Dans le code suivant, quels sont les bons commentaires ? <First>, <Second>, etc. ne font pas partie du code et ne servent qu'à identifier les commentaires pour cette question.
#include "user-id.h"#include <iostream>#include <regex>#include <string>#include <array>
// <First> Version 1.0 - Initial implementation by Hoang// <Second> The pattern used here is specifically designed to match the structure of a valid email address according to the standards defined by the Internet Engineering Task Force (IETF), with the pattern accounting for a combination of alphanumeric characters, dots, underscores, percent signs, plus signs, and hyphens before the '@' symbol, followed by a domain name, and ending with a period and a top-level domain of at least two characters in length. This ensures that only valid email addresses in this format will be accepted.// <Third> WARNING: This method does not check if the domain is reachable; it only checks the format.bool isValidEmail(const std::string& email) { // <Fourth> This regex matches an email address that can contain ". _ % + -" // Other symbols are not allowed. std::regex email_regex(R"([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA0-9]{2,})");
// <Fifth> Returns true if the email address matches the regex return std::regex_match(email, email_regex);}
// <Sixth> Using array instead of vector since the number of IDs is fixed.array<int, NUMBER_OF_IDS> createUserIds() { std::array<int, NUMBER_OF_IDS> userIds;
// <Seventh> Inputs for test purposes // for (int i = 0; i < NUMBER_OF_IDS; ++i) { // userIds[i] = i + 1; //}
// <Eighth> TODO: Finish the implementation with the list of userIds from HR. // <Ninth> for (int i = 0; i < NUMBER_OF_IDS; ++i) { // userIds[i] *= 2; //}
return userIds;}
Voici un morceau de code d'un makefile :
all: step2 step3 step4 <first command>
step2: step3 <second command>
step3: <third command>
step4: step2 step3 <final command>
.PHONY: step3
Dans le répertoire du makefile, nous avons les fichiers suivants avec l'heure de leurs dernière modifications :
Quelles commandes vont être exécutées quand vous tapez make ?
Voici un morceau de code d'un makefile :
all: step2 step3 step4 <first command>
step2: step3 <second command>
step3: <third command>
step4: step2 step3 <final command>
Dans le répertoire du makefile, nous avons les fichiers suivants avec l'heure de leurs dernière modifications :
Quelles commandes vont être exécutées quand vous tapez make ?
Voici un morceau de code d'un makefile :
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp $(CXX) $< $(OUT) $@
Identifiez la nature des différents éléments de ce code.