• Verkeerd document? Gratis ruilen
  • Geschreven door studenten die geslaagd zijn
  • Direct beschikbaar na je betaling
  • Online lezen of als PDF
Verkopen
Kies je studieland
Kies je taal
Document preview thumbnail
Voorbeeld 2 van de 5 pagina's
Tentamen (uitwerkingen)

C++

Document preview thumbnail
Voorbeeld 2 van de 5 pagina's

Exam of 5 pages for the course C++ at C++ (C++)

Voorbeeld van de inhoud

C++ GRADE A QUESTION WITH ANSWER

In a C++ program, two slash marks (//) indicate - (correct answer)The beginning of a
comment



Every complete C++ Program must have a _____ - (correct answer)Function named
main



For every opening brace in a C++ program, there must be a - (correct answer)Closing
Brace


A statement that starts with a # is called a - (correct answer)Preprocessor directive



This is used to mark the end of a complete C++ programming statement. - (correct
answer)Semicolon



What will the following code display?


cout << "Four\n" << "score\n";

cout << "and" << "\nseven";

cout << "\nyears" << " ago" << end; - (correct answer)Four
score

and

seven

years ago



What will the following code display?

, cout << "Four" << " score" << end;

cout << "and" << " seven" << end;

cout << "years" << " ago" << end; - (correct answer)Fourscore

andseven

yearsago



The ______ is/are used to display information on the computer's screen. - (correct
answer)Cout object


____________ must be included in any program that uses the cout object. - (correct
answer)The header file iostream



Including the following namespace will allow you simplify you code. - (correct
answer)std



To output multiple lines of text to the user, you must use more than one cout statement.
- (correct answer)False



The end of a printed line can be signaled by sending _____ to the cout object - (correct
answer)endl



How would you consolidate the following declaration statements into one statement?


int x = 7;

int y = 16;

int z = 28; - (correct answer)int x = 7, y = 16, z = 28;



_____________ represent storage locations in the computer's memory. - (correct
answer)Variables

Documentinformatie

Geüpload op
26 oktober 2024
Aantal pagina's
5
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden
€9,85

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Seller avatar
douglasmugwe82
5,0
(1)
Verkocht
2
Volgers
0
Items
4215
Laatst verkocht
1 jaar geleden

Echte notities, van echte studenten
Elk document op Stuvia is geschreven door een medestudent die hetzelfde vak deed. Zo leer je van iemand die het al heeft gehaald.



Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen