Шукаєте відповіді та рішення тестів для Qualité de développement S2? Перегляньте нашу велику колекцію перевірених відповідей для Qualité de développement S2 в cours.iut-orsay.fr.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
Parmi les phrases suivantes, quelles sont les phrases qui ne devraient pas être dans un README professionnel ?
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
?
Où doit-on écrire la documentation pour utilisateur en C++ ?
Où doivent se trouver les fichiers suivants ?
Quels sont les prérequis de code.o
la deuxième fois que nous exécutons make
?
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 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.
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
:
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
:
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp
$(CXX) $< $(OUT) $@
Identifiez la nature des différents éléments de ce code.
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!