Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 4 out of 161 pages
Exam (elaborations)

Test Bank for C How to Program, 9th Edition by Deitel (All Chapters included) (All Chapters included)

Document preview thumbnail
Preview 4 out of 161 pages

Complete Test Bank for C How to Program, 9th Edition by Paul Deitel, Harvey Deitel ; ISBN13: 9780137454372...(Full Chapters included and organized in reverse order from Chapter 15 to 1)...1.Introduction to Computers and C: Test-Driving Microsoft Visual Studio, Apple Xcode, GNU gcc, and GNU gcc in a Docker container 2.Intro to C Programming: Input, Output, Types, Arithmetic, Decision Making 3.Structured Program Development: Algorithmic Development, Problem Solving, if, if/else, while 4.Program Control: for, do/while, switch, break, continue, Logical Operators 5.Functions: Custom Functions, Simulation, Random-Number Generation, Enumerations, Function Call and Return Mechanism, Recursion, Recursive Factorial, Recursive Fibonacci 6.Arrays: One- and Two-Dimensional Arrays, Passing Arrays to Functions, Searching, Sorting 7.Pointers: Pointers operators & and •, Pass-By-Value vs. Pass-By-Reference, Array and Pointer Relationship 8.Characters and Strings: C Standard Library String- and Character-Processing Functions 9.Formatted Input/Output: scanf and printf formatting 10.Structures, Unions, Bit Manipulation and Enumerations: Creating Custom Types with structs and unions, Bitwise Operators, Named Constants 11.File Processing: Streams, Text and Binary Files, CSV Files, Sequential and Random-Access Files 12.Data Structures: Dynamic Memory Allocation and Deallocation, Lists, Stacks, Queues, Binary Trees 13.Computer-Science Thinking: Sorting Algorithms and Big O Insertion Sort, Selection Sort, Merge Sort, Additional Algorithms including Quicksort in the Exercises 14.Preprocessor: #include, Conditional Compilation, Macros with Arguments, Assertions 15.Other Topics: Variable-Length Argument Lists, Command-line Arguments, Multiple-Source-Pile Programs, extern, exit/atexit, calloc/realloc, goto, Numeric Literal Suffixes, Signal Handling

Content preview

TEST BANK



C How to Program, 9th Edition
by Paul Deitel




Complete Chapter Test Bank
are included (Ch 1 to 15)




** Immediate Download
** Swift Response
** All Chapters included

,Table of Contents are given below




1.Introduction to Computers and C: Test-Driving Microsoft Visual Studio, Apple Xcode, GNU gcc, and GNU

gcc in a Docker container

2.Intro to C Programming: Input, Output, Types, Arithmetic, Decision Making

3.Structured Program Development: Algorithmic Development, Problem Solving, if, if/else, while

4.Program Control: for, do/while, switch, break, continue, Logical Operators

5.Functions: Custom Functions, Simulation, Random-Number Generation, Enumerations, Function Call and

Return Mechanism, Recursion, Recursive Factorial, Recursive Fibonacci

6.Arrays: One- and Two-Dimensional Arrays, Passing Arrays to Functions, Searching, Sorting

7.Pointers: Pointers operators & and •, Pass-By-Value vs. Pass-By-Reference, Array and Pointer Relationship

8.Characters and Strings: C Standard Library String- and Character-Processing Functions

9.Formatted Input/Output: scanf and printf formatting

10.Structures, Unions, Bit Manipulation and Enumerations: Creating Custom Types with structs and unions,

Bitwise Operators, Named Constants

11.File Processing: Streams, Text and Binary Files, CSV Files, Sequential and Random-Access Files

12.Data Structures: Dynamic Memory Allocation and Deallocation, Lists, Stacks, Queues, Binary Trees

13.Computer-Science Thinking: Sorting Algorithms and Big O Insertion Sort, Selection Sort, Merge Sort,

Additional Algorithms including Quicksort in the Exercises

14.Preprocessor: #include, Conditional Compilation, Macros with Arguments, Assertions

15.Other Topics: Variable-Length Argument Lists, Command-line Arguments, Multiple-Source-Pile Programs,

extern, exit/atexit, calloc/realloc, goto, Numeric Literal Suffixes, Signal Handling

,The test bank is organized in reverse order, with the last chapter displayed first,
to ensure that all chapters are included in this document. (Complete Chapters
included Ch15-1)

Chapter 15, Other Topics
15.2 Variable-Length Argument Lists

15.3 Which of the following function prototypes is correct?
a) double average(int, ...)
b) double average(..., int);
c) double average(int, ...);
d) double average(int, ... , int);
ANS: c.

15.4 What macro expands to an expression of the value and type of the next argument
in a variable-length argument list?
a) va_end
b) va_start
c) va_list
d) va_arg
ANS: d.

15.3 Using Command-Line Arguments

15.5 How many arguments can be passed to main from the command line?
a) 1
b) 2
c) 3
d) as many as you want
ANS: d.

15.4 Compiling Multiple-Source-File Programs

15.6 extern
a) is a keyword to indicate that a variable is defined in a different file.
b) is used to access command-line arguments.
c) can be used as a control structure.
d) is a data type.
ANS: a.

15.7 Global variables can be used to increase performance because
a) global variables are accessed faster than local variables.
b) the overhead of passing data between functions is eliminated.
c) they are stored more compactly than local variables.

, C How to Program, 9/e Multiple Choice Test Bank 1 of 5

d) All of the above.
ANS: b.

15.8 Which of the following is not an error?
a) having a function definition that spans two files
b) using a global variable in a file it was not defined in without defining it with the
extern modifier
c) defining a function prototype without the extern keyword when the definition is
in another file
d) having global variables in different files with the same name
ANS: c.

15.9 Which of the following restricts the scope of a global variable to the file it’s de-
fined in?
a) extern
b) static
c) int
d) local
ANS: b.

15.5 Program Termination with exit and atexit

15.10 When exit is called with EXIT_FAILURE, ________.
a) the program quits immediately without returning anything
b) the program prints an error message and quits the current function
c) the implementation-defined value for unsuccessful termination is returned
d) the program breaks out of a loop
ANS: c.

15.11 The function atexit takes as an argument ________.
a) the line number of where the program should exit
b) a function that is executed when the program is exited unsuccessfully
c) a function to be called when the program ends successfully
d) normally the symbolic constant EXIT_SUCCESS or EXIT_FAILURE
ANS: c.

15.6 Suffixes for Integer and Floating-Point Literals

15.12 A floating-point constant that’s not suffixed is of type ________.
a) double
b) float
c) unsigned float
d) long double

Document information

Uploaded on
December 13, 2024
Number of pages
161
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers
$29.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
mizhouubcca
4.3
(499)
Sold
2964
Followers
363
Items
1716
Last sold
9 hours ago



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions