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 2 out of 12 pages
Exam (elaborations)

NOS 120 FINAL CHAP SOL 6-10 QUESTIONS WITH VERIFIED ACCURATE ANSWERS

Document preview thumbnail
Preview 2 out of 12 pages

NOS 120 FINAL CHAP SOL 6-10 QUESTIONS WITH VERIFIED ACCURATE ANSWERS

Content preview

NOS 120 FINAL CHAP SOL 6-10 QUESTIONS WITH
VERIFIED ACCURATE ANSWERS

A new programmer whom you are training is writing a C program and he wants to place
comment lines in
the program. Which of the following characters should be used at the beginning and end
of the comments? - Answers -Use /* at the beginning of the comments and */ at the
end.

You've written a C program, but are now getting an error message about the use of
standard input and
output statements when you compile the program. Which of the following might be the
cause? - Answers -You omitted the preprocessor directive for the file stdio.h

Which of the following is in the proper format for a character constant? - Answers -'C'
and 'c'

Which of the following are performed by functions in the C library? - Answers -a. screen
operations, b. memory allocation operations, c. file operations, and d. math
operations

A daemon is a _ - Answers -specialized system process that runs in the background

A colleague of yours is just learning to use the C compiler in Linux. When she tries to
compile a program
called firststart.c using gcc firststart.c she is expecting the executable file to have the
name firststart, but
there is no firststart file. What is the executable file's name? - Answers -a.out

You have written a C program using the variables num, enum, sum, and long. When
you compile the
program you get an error message about using a variable the compiler finds
unacceptable. Which of the
following is likely to be the problem? - Answers -enum and long are keywords and
cannot be used as variables

Which of the following are examples of data types in the C language? - Answers -int,
double, float

Which of the following is the right way to use the string constant, Enter your ID:, in the C
language? - Answers -"Enter your ID:"

Which of the following functions must be in a C program? - Answers -main()

, Which of the following statements enables you to print File updated on the screen when
a C++ program is
finished? - Answers -cout << "File updated.\n";

Which of the following are important characteristics of C++ programming? - Answers -
object-oriented programming and c. use of classes for specialized programming needs

Your program to calculate values in physics requires working with positive and negative
whole numbers
between -14,242 and 12,528. What data types would you use to work with these
numbers in a C program? - Answers -short int

In your C program, you want to use a while loop and decrement the value, counter,
each time the program
goes through the while loop. Which of the following operators enables you to decrement
the value in
counter? - Answers -counter--;

Which of the following functions is used to open a file in the C language? - Answers -
fopen()

What started as a simple C program has now turned into several program modules as
you have refined it
over the past several months. The problem is that now you do not always remember
which modules you
have changed at what time. What should you do? - Answers -Use the make utility and
create makefiles.

What compiler is started by using the g++ command? - Answers -the C++ compiler

The programmer you are training wants to write code to determine when the end of a
file has been reached.
Which of the following can he use? - Answers -feof()

Your C++ program needs to access the system date in different ways. Which of the
following enables you
to do this? - Answers -<ctime> library

Which of the following is an acceptable way to insert a comment line in a C++ program?
(Choose all that
apply.) - Answers -// Program Name: calc.C

What character shows that you are starting a block of code in the C and C++
languages? - Answers -{

Document information

Uploaded on
March 3, 2026
Number of pages
12
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$14.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.
GEEKA
3.8
(363)
Sold
2147
Followers
1448
Items
59476
Last sold
14 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