100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Tentamen (uitwerkingen)

CS 159 EXAM QUESTIONS WITH CORRECT SOLUTIONS

Beoordeling
-
Verkocht
-
Pagina's
23
Cijfer
A+
Geüpload op
27-11-2025
Geschreven in
2025/2026

CS 159 EXAM QUESTIONS WITH CORRECT SOLUTIONS

Instelling
CS 159
Vak
CS 159










Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Geschreven voor

Instelling
CS 159
Vak
CS 159

Documentinformatie

Geüpload op
27 november 2025
Aantal pagina's
23
Geschreven in
2025/2026
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

Voorbeeld van de inhoud

CS 159

A C program begins with a section for preprocessor directive. - Answers-True



The preprocessor is a part of the compiling process and prepares your code for the remainder of that
process. - Answers-True



Every program must have exactly one function named main. - Answers-True



The main function is the starting point for execution of the program. - Answers-True



Within each function the local declarations and executable statements must NOT be permitted to
overlap. - Answers-True



Variable declarations will NEVER be permitted in the global section this semester. - Answers-True



The files stdio.h and math.h are libraries that contain standard functions for our use. - Answers-True



The return 0; statement will be the final statement in the main function. - Answers-True



The return statement in main will return control back to the first statement in main. - Answers-False



Comments are added to a program to improve its level of documentation intended for other
programmers. - Answers-True

,The course program headers are multi-line comments. - Answers-True



You should place a single space between all operators and operands. - Answers-True



All variables should be commented to the right of each declaration. - Answers-True



You should declare multiple variables on one line. - Answers-False



Select meaningful identifiers (names) for all variables in your program. - Answers-True



Rarely are single character identifiers considered meaningful for variables in a program. - Answers-True



Do not single (or double) space the entire program, use blank lines when appropriate. - Answers-True



There is no need to include example output with your submission. - Answers-True



All code found between { and } should be indented two additional spaces. - Answers-True



The file you submit for lab #1 must be named lab01.c - Answers-True



Multi-line comments cannot be nested. - Answers-True



An identifier cannot begin with a digit character. - Answers-True



In addition to alphabetic and digits characters it is acceptable to use underscores, dashes, and periods as
part of an identifier. - Answers-False

, The data type of a variable will determine the amount of memory that is necessary to reserve for it. -
Answers-True



The operators that can be applied to a value are restricted by its data type. - Answers-True



A variable that is not initialized at the time it is declared will be storing an unknown value. - Answers-
True



The use of symbolic/defined constants can improve the documentation of a program. - Answers-True



In most cases the definition of symbolic/defined constants will not terminate with a semi-colon. -
Answers-True



A literal constant is data that is not represented by any other symbol in a given expression. - Answers-
True



A printf function is composed of a format string and a data list. - Answers-True



A scanf function is composed of a format string and a data list. - Answers-False



The selection of a conversion code in a format string depends on the type of value it will represent. -
Answers-True



A width modifier is used to reserve a given number of spaces to assist with the alignment of the value
being displayed. - Answers-True

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.
Rosetopgrader Nursing
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
30
Lid sinds
1 jaar
Aantal volgers
8
Documenten
3803
Laatst verkocht
2 maanden geleden

5,0

8 beoordelingen

5
8
4
0
3
0
2
0
1
0

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 Bancontact, iDeal of creditcard en download je PDF-document meteen.

Student with book image

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

Alisha Student

Veelgestelde vragen