Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

CS 121 Final Exam questions and answers with solutions 2025

Beoordeling
-
Verkocht
-
Pagina's
26
Cijfer
A+
Geüpload op
15-03-2025
Geschreven in
2024/2025

CS 121 Final Exam questions and answers with solutions 2025

Instelling
CCC
Vak
CCC

Voorbeeld van de inhoud

CS 121 Final Exam questions and answers
with solutions 2025

& - ANSWER Address Operator (returns address of values), Reference Operator, Part of And
(&&)



<< - ANSWER Used with cout



>> - ANSWER Used with cin



void - ANSWER Basically it means "nothing" or "no type"



There are 3 basic ways that void is used:



Function argument: int myFunc(____) -- the function takes nothing.

Function return value: ____ myFunc(int) -- the function returns nothing

Generic data pointer: void* data -- 'data' is a pointer to data of unknown type, and cannot be
dereferenced

Note: the void in a function argument is optional in C++, so int myFunc() is exactly the same as
int myFunc(____), and it is left out completely in C#. It is always required for a return value.



{} - ANSWER Delimits a scope



| - ANSWER or



setw(n) - ANSWER Sets the field width to be used on output operations.

,Behaves as if member width were called with n as argument on the stream on which it is
inserted/extracted as a manipulator (it can be inserted/extracted on input streams or output
streams).



This manipulator is declared in header <iomanip>.



setprecision(n) - ANSWER Sets the decimal precision to be used to format floating-point values
on output operations.



Behaves as if member precision were called with n as argument on the stream on which it is
inserted/extracted as a manipulator (it can be inserted/extracted on input streams or output
streams).



This manipulator is declared in header <iomanip>.



fixed - ANSWER Use fixed floating-point notation

Sets the floatfield format flag for the str stream to fixed.



When floatfield is set to fixed, floating-point values are written using fixed-point notation: the
value is represented with exactly as many digits in the decimal part as specified by the precision
field (precision) and with no exponent part.



scientific - ANSWER Sets the floatfield format flag for the str stream to scientific.



When floatfield is set to scientific, floating-point values are written using scientific notation: the
value is represented always with only one digit before the decimal point, followed by the
decimal point and as many decimal digits as the precision field (precision). Finally, this notation
always includes an exponential part consisting on the letter e followed by an optional sign and
three exponential digits.

, setfill('.') - ANSWER /*unspecified*/ _______ (char_type c);



Set fill character

Sets c as the stream's fill character.



Behaves as if member fill were called with c as argument on the stream on which it is inserted
as a manipulator (it can be inserted on output streams).



This manipulator is declared in header <iomanip>.



right - ANSWER ios_base& right (ios_base& str);



Adjust output to the right

Sets the adjustfield format flag for the str stream to right.



When adjustfield is set to right, the output is padded to the field width (width) by inserting fill
characters (fill) at the beginning, effectively adjusting the field to the right.



The adjustfield format flag can take any of the following values (each with its own manipulator):



left - ANSWER ios_base& left (ios_base& str);



Adjust output to the left

Sets the adjustfield format flag for the str stream to left.

Geschreven voor

Instelling
CCC
Vak
CCC

Documentinformatie

Geüpload op
15 maart 2025
Aantal pagina's
26
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

$12.99
Krijg toegang tot het volledige document:

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

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
Performance Chamberlain College Of Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
416
Lid sinds
2 jaar
Aantal volgers
40
Documenten
17380
Laatst verkocht
18 uur geleden

GET EVERYTHING YOU NEED TO ACE YOUR CLASSES IN ONE PLACE. WE OFFER INSTANT DOWNLOADS OF TEST BANKS, EASY-TO-READ STUDY GUIDES, STEP-BY-STEP HOMEWORK HELP, AND SAMPLE RESEARCH PAPERS TO SAVE YOU HOURS OF WORK. WHETHER YOU'RE PREPPING FOR A BIG FINAL OR STUCK ON A TOUGH ASSIGNMENT, OUR RESOURCES GIVE YOU THE EXACT SHORTCUTS AND PRACTICE YOU NEED TO BOOST YOUR GRADES FAST. STOP STRESSING AND GET THE COMPETITIVE EDGE YOU NEED TO SUCCEED RIGHT NOW!!!

Lees meer Lees minder
4.3

233 beoordelingen

5
133
4
62
3
25
2
4
1
9

Recent door jou bekeken

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