100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

CS 159 - Purdue - Exam 1 Study Guide (From Lab Quizzes) Questions and Answers 100% out of 100% A+

Rating
-
Sold
1
Pages
10
Grade
A+
Uploaded on
14-07-2023
Written in
2022/2023

CS 159 - Purdue - Exam 1 Study Guide (From Lab Quizzes) Questions and Answers 100% out of 100% A+ T/F: All functions that utilize passing parameters by address must be void. - CORRECT ANSWER-F T/F: Data sent from the calling function to the function being called will be received in the same order in which it was passes. - CORRECT ANSWER-T T/F: The number of parameters cannot be determined from the declaration of a function. - CORRECT ANSWER-F Does fetching data access computer memory? - CORRECT ANSWER-Yes Does writing data access computer memory? - CORRECT ANSWER-Yes Does processing data access computer memory? - CORRECT ANSWER-No COURSE STANDARD? The declaration section and execution sections of a user- defined function must never overlap. - CORRECT ANSWER-Yes COURSE STANDARD? Attempt to minimize your use of literal constants and maximize your use of symbolic constants. - CORRECT ANSWER-Yes COURSE STANDARD? Place a single space between all operators and operands. - CORRECT ANSWER-Yes T/F: A structure chart should be more horizontal and less vertical because the main function should make a majority of the user- defined function calls. - CORRECT ANSWER-F T/F: Functions from standard C libraries such as math.h and stdio.h are not included on a structure chart. - CORRECT ANSWER-F T/F: It is possible to determine from a structure chart the order in which use-defined functions are called in a program. - CORRECT ANSWER-F T/F: Symbolic/ defined constants do not have a data type, but the values they represent do. - CORRECT ANSWER-T T/F: The assignment operator is not used to associate a value with an identifier as no memory is requires for symbolic/ defined constant. - CORRECT ANSWER-T T/F: No terminal semicolon is used when defining a symbolic/ defined constant as the define instruction is a pre-processor directive. - CORRECT ANSWER-T T/F: A mixed type expression will require at least one type conversion before the expression can be evaluated. - CORRECT ANSWER-T T/F: Only implicit type conversions can be used to change a mixed type expression to a single type expression. - CORRECT ANSWER-F T/F: An explicit type conversion cannot be applied to a symbolic/defined constant because such a constant does not have a data type. - CORRECT ANSWER-F T/F: It takes less time to access those levels of memory that are lower on the hierarchy than those that are higher. - CORRECT ANSWER-F T/F: The capacity of those levels of memory that are lower on the hierarchy is greater than those that are higher. - CORRECT ANSWER-T T/F: The memory at lower levels on the hierarchy are closer to the CPU than those that are higher. - CORRECT ANSWER-F T/F: An error related to a floating exception or segmentation fault can be detected by the compiler. - CORRECT ANSWER-F T/F: A logical error cannot be detected by the compiler. - CORRECT ANSWER-T T/F: A warning issued by the compiler will not prevent the creation of a new executable file. - CORRECT ANSWER-T T/F: A user defined function can return at most one value. - CORRECT ANSWER-T T/F: Control of a program is always returned from the called function to the calling function when the called function terminated. - CORRECT ANSWER-T T/F: One user defined function cannot call another user defined function. - CORRECT ANSWER-F T/F: The user defined functions will be declared with a local scope in your programs. - CORRECT ANSWER-F T/F: According to course standards a variable will never be permitted to define with a global scope. - CORRECT ANSWER-T T/F: It is not possible to reuse an identifier when the two objects that will share the identifier do not have an overlapping scope. - CORRECT ANSWER-F DEFINITON: Functionally cohesive - CORRECT ANSWER-Called function accomplished only a single task in the program.

Show more Read less
Institution
CS 159
Course
CS 159









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
CS 159
Course
CS 159

Document information

Uploaded on
July 14, 2023
Number of pages
10
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

CS 159 - Purdue - Exam 1 Study Guide (From Lab Quizzes) Questions and
Answers 100% out of 100% A+

T/F: All functions that utilize passing parameters by address must be void. - CORRECT
ANSWER-F

T/F: Data sent from the calling function to the function being called will be received in the same
order in which it was passes. - CORRECT ANSWER-T

T/F: The number of parameters cannot be determined from the declaration of a function. -
CORRECT ANSWER-F

Does fetching data access computer memory? - CORRECT ANSWER-Yes

Does writing data access computer memory? - CORRECT ANSWER-Yes

Does processing data access computer memory? - CORRECT ANSWER-No

COURSE STANDARD? The declaration section and execution sections of a user- defined
function must never overlap. - CORRECT ANSWER-Yes

COURSE STANDARD? Attempt to minimize your use of literal constants and maximize your
use of symbolic constants. - CORRECT ANSWER-Yes

COURSE STANDARD? Place a single space between all operators and operands. - CORRECT
ANSWER-Yes

T/F: A structure chart should be more horizontal and less vertical because the main function
should make a majority of the user- defined function calls. - CORRECT ANSWER-F

T/F: Functions from standard C libraries such as math.h and stdio.h are not included on a
structure chart. - CORRECT ANSWER-F

T/F: It is possible to determine from a structure chart the order in which use-defined functions
are called in a program. - CORRECT ANSWER-F

T/F: Symbolic/ defined constants do not have a data type, but the values they represent do. -
CORRECT ANSWER-T

T/F: The assignment operator is not used to associate a value with an identifier as no memory is
requires for symbolic/ defined constant. - CORRECT ANSWER-T

T/F: No terminal semicolon is used when defining a symbolic/ defined constant as the define
instruction is a pre-processor directive. - CORRECT ANSWER-T

, T/F: A mixed type expression will require at least one type conversion before the expression can
be evaluated. - CORRECT ANSWER-T

T/F: Only implicit type conversions can be used to change a mixed type expression to a single
type expression. - CORRECT ANSWER-F

T/F: An explicit type conversion cannot be applied to a symbolic/defined constant because such
a constant does not have a data type. - CORRECT ANSWER-F

T/F: It takes less time to access those levels of memory that are lower on the hierarchy than those
that are higher. - CORRECT ANSWER-F

T/F: The capacity of those levels of memory that are lower on the hierarchy is greater than those
that are higher. - CORRECT ANSWER-T

T/F: The memory at lower levels on the hierarchy are closer to the CPU than those that are
higher. - CORRECT ANSWER-F

T/F: An error related to a floating exception or segmentation fault can be detected by the
compiler. - CORRECT ANSWER-F

T/F: A logical error cannot be detected by the compiler. - CORRECT ANSWER-T

T/F: A warning issued by the compiler will not prevent the creation of a new executable file. -
CORRECT ANSWER-T

T/F: A user defined function can return at most one value. - CORRECT ANSWER-T

T/F: Control of a program is always returned from the called function to the calling function
when the called function terminated. - CORRECT ANSWER-T

T/F: One user defined function cannot call another user defined function. - CORRECT
ANSWER-F

T/F: The user defined functions will be declared with a local scope in your programs. -
CORRECT ANSWER-F

T/F: According to course standards a variable will never be permitted to define with a global
scope. - CORRECT ANSWER-T

T/F: It is not possible to reuse an identifier when the two objects that will share the identifier do
not have an overlapping scope. - CORRECT ANSWER-F

DEFINITON: Functionally cohesive - CORRECT ANSWER-Called function accomplished only
a single task in the program.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ShowvinePublishers Teachme2-tutor
View profile
Follow You need to be logged in order to follow users or courses
Sold
72
Member since
2 year
Number of followers
47
Documents
1164
Last sold
2 weeks ago
ShowvinePublishers

Running Out Of Time Don\'t Worry, we are dedicated and committed in delivering Well Researched and Prepared Assignments tailored towards achieving students goals and Passing Exams A+. All the Study Materials Graded A+ 100% Ready to bridge the gap for your success. \" ShowvinePublishers:- A One Store for all your exams purposes.\"

4.1

14 reviews

5
7
4
3
3
3
2
1
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions