Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 1 Which of the following is an example of application software? Database management system Language translator Operating system Sort Security monitor 2 points QUESTION

QUESTION 1

Which of the following is an example of application software?

Database management system

Language translator

Operating system

Sort

Security monitor

2 points

QUESTION 2

The establishment and use of sound engineering methods and principles to obtain software that is reliable and that works on real machines is the definition of ____.

Program development

System Development Life Cycle

Software engineering

System design

Programming

2 points

QUESTION 3

Which of the following is not a computer language?

Assembly/symbolic language

Binary language

High-level languages

Machine language

2 points

QUESTION 4

Which of the following is not a step in writing a program?

Understanding the problem

Designing the program

Designing the program algorithms

Writing the program

Testing the program

2 points

QUESTION 5

The part English part program logic tool used to design a program or part of a program is ____.

Flowchart

Detail design

Pseudocode

Structure chart

Waterfall model

2 points

QUESTION 6

The tool used by a programmer to convert a high-level source program to an object module is a ____.

Compiler

Language translator

Linker

Preprocessor

Text editor

2 points

QUESTION 7

A computer system consists of hardware and ____.

an operating system

software

primary storage

printer

keyboard

2 points

QUESTION 8

The series of interrelated phases that is used to develop computer software is known as ____.

Program development

Software engineering

System development life cycle

System analysis

System design

2 points

QUESTION 9

Which of the following is not a C type?

Boolean

Character

Number

Real

Imaginary

2 points

QUESTION 10

Which of the following is not a valid output formatting modifier?

Justification flag

Width

Precision

Size

Alignment

2 points

QUESTION 11

Which of the following is a long double literal with a value of 3.14159?

3.14159

3.14159f

3.14159L

3.14159LD

3.14159LL

2 points

QUESTION 12

Which of the following is not part of the structure of a C program?

Preprocessor directives

Global declarations section

Local directives

Functions

2 points

QUESTION 13

Which of the following input formatting statements would read the following data?

23 z 4.1

scanf("%d%c%f", i, c, f);

scanf("%i%c%f", i, c, f);

scanf("%d%c%f", &i, &c, &f);

scanf("%d %c%f", &i, &c, &f);

scanf("%d %c %x", &i, &c, &f);

2 points

QUESTION 14

Which of the following C types could is more suitable to store pi (3.14159)?

short int

double

long int

double imaginary

double complex

2 points

QUESTION 15

Which of the following is a valid defined constant?

#define SALES-TAX-RATE = 0.0825

#define SALES-TAX-RATE 0.0825

#define SALES_TAX_RATE 0.0825

#define SALES_TAX_RATE 0.0825;

2 points

QUESTION 16

The expression (a * b + c / d - e % f) is evaluated as:

a * b + c / d - e % f

((a * (b + c) / (d - e)) % f)

((a * b + c) / (d - e % f))

((a * b) + (c / d) - (e % f))

((a * (b + (c / d)) - e) % f)

2 points

QUESTION 17

Which of the following is not a multiplicative expression?

15 % 7

15 * 7

15 + 7

15 / 7

2 points

QUESTION 18

Which of the following explicit type casts is valid?

(float) x = a / b

[float] x = a / b

x = float (a / b)

x = [float] (a / b)

x = (float) (a / b)

2 points

QUESTION 19

Which of the following answers about statements is true?

Statements can be null.

Statements must be terminated by a semicolon.

Statements cannot have side effects.

A compound statement is enclosed in brackets ([ ]).

Expressions are automatically statements.

2 points

QUESTION 20

Which of the following statements about expressions is false?

An expression is a sequence of operands and operators.

Expressions always reduce to a single value.

A complex expression contains more than one operator.

If two operators with the same precedence occur in a complex expression, the precedence rules determine the order of evaluation.

There are six expression categories.

2 points

QUESTION 21

Which of the following expressions is not a unary expression?

x

sizeof(x)

+x

-x

float(x)

2 points

QUESTION 22

Given a is 3, b is 4, and c is 5, what is the value of the expression

--a * (3 + b) / 2 - c++ * b?

-9

-10

-13

8

undeterminable (b is evaluated twice)

2 points

QUESTION 23

Variables defined with a function are visible

for the entire function.

from the point of declaration to the end of their function.

from the point of declaration to the end of the program.

anywhere in the program.

within the function and any called function.

2 points

QUESTION 24

Objects defined at the beginning of a program (before main) have ____ scope.

global

local

block

functional

external

2 points

QUESTION 25

Which of the following statements about a function call is false?

A function call is a postfix expression.

The operand in a function call is the function name.

The parameter list contains the formal parameters.

The parameter list must match the function headers parameters in type and order.

The value of the call of a void function cannot be assigned.

2 points

QUESTION 26

In ____ communication, the called function sends data to the calling function.

downward

upward

bi-directional

lateral

2 points

QUESTION 27

In the function definition, the parameters are contained in the ____.

function body

function header

function declaration

formal parameter list

actual parameter list

2 points

QUESTION 28

Which of the following is not an advantage of functions in C?

Problems can be factored into understandable and manageable steps.

Functions make it possible to develop programs easily and rapidly.

Functions provide a way to reuse code.

Functions can be grouped into libraries for reuseability.

Functions protect data from accidental access by other functions.

2 points

QUESTION 29

Which of the following is not a basic function design?

Void functions with no parameters.

Void Functions with parameters

Functions that have side effects.

Functions with no parameters that return a value.

Functions with parameters that return a value.

2 points

QUESTION 30

Which of the following is not a logical operator?

if

not

and

or

2 points

QUESTION 31

Which of the following is not a relational operator?

=

<

>=

>

2 points

QUESTION 32

Which of the following is the complement of equal ( ==)?

>

>=

<=

!=

==

2 points

QUESTION 33

Which of the following statements about the switch statement is false?

The switch statement is a form of multiway selection.

The default label is optional.

The switch statement requires one or more case labels.

The switch expression must evaluate to an integral.

The actions associated with a case label are terminated automatically when another case label or the default label is reached.

2 points

QUESTION 34

Which of the following statements about the else statement is true?

The else statement is required.

The else statement cannot be another two-way selection.

The else statement is executed when the condition is true.

The else statement can be a null statement.

The else statement may have a side effect.

2 points

QUESTION 35

Which of the following statements about program termination is true?

The return statement terminates a function.

The abort function requires an integer as its only parameter.

C considers exit an abnormal program termination.

abort completes any pending file stream writes before terminating the program.

Terminating main with exit has the same effect as terminating it with return.

2 points

QUESTION 36

Which of the following is not a good rule for programming style.

With a series of selection statements, code the most probable first.

One statement with multiple negative expressions is preferred over a series of multiple statements.

For human engineering reasons, code the most probable conditions first.

Code positive statements whenever possible.

Avoid compound negative statements.

2 points

QUESTION 37

The statement that terminates a loop and continues with the statement immediately following the loop is:

break

continue

goto

comma

recursion

2 points

QUESTION 38

The statement that transfers to the testing expression in while or do...while statements and the update in a for statement is:

break

continue

goto

comma

recursion

2 points

QUESTION 39

Which of the following statements about pretest loops is true?

In each iteration, the loop control expression is tested first.

If the loop control expression is false, the loop terminates.

Pretest loops do not require initialization.

In C, the loop control expression is a part of the loop statement itself.

Pretest loops do not require an action.

2 points

QUESTION 40

Which of the following statements about post-test loops is true?

Initialization is found in the body of the loop.

The loop actions are executed before the control expression.

If the loop control expression is false, the loop terminates.

If the loop control expression is false, the action is not executed.

In C, the update is a part of the loop statement itself.

2 points

QUESTION 41

Which of the following statements about counter-controlled loops is true?

They can be used only when the number of times the loop is to be repeated is known before the loop starts.

The number of times the loop is to be executed must be a constant.

The update in a counter-controlled loop is an increment.

They cannot be used when the limit is a calculated value.

The counter must be initialized as the first statement in the loop body.

2 points

QUESTION 42

Which of the following would be the best example of a counter-controlled loop?

Print a number backward.

Validate data read from the keyboard.

Print a calendar.

Print the sum of the digits in an integer.

2 points

QUESTION 43

Which of the following statements about the for loop is true?

The limit test is the last expression within the for statement.

The minimum number of times the action body can be executed is 1.

It requires a semicolon at the end of the statement.

The action body must be one and only one statement.

It is an event-controlled loop.

2 points

QUESTION 44

Which of the following statements about files is false?

Files are stored in primary storage devices.

Files are a collection of related data treated as a unit.

Data moves from the file to memory through a buffer.

It is the programmers job to test for end of file on an input file.

Files must be named using the operating systems rules.

2 points

QUESTION 45

Which of the following C statements reads a character, an integer, and a real in that order?

%c, %d, %f

%c, %d, %r

%c%d%r

%c %d %f

%cdr

2 points

QUESTION 46

Which of the following statements about the append mode is false?

A file opened in the append mode may be read from or written to.

The file is initially opened in the write state.

If the file does not exist, an error is returned.

The file marker is positioned at the end of the file.

2 points

QUESTION 47

The ____ modifier can be used to specify the minimum number of character spaces used in output.

flag

width

precision

size

2 points

QUESTION 48

The file mode that opens an existing file with the file marker positioned at the end of file is:

a

e

r

w

z

2 points

QUESTION 49

Which of the following format codes formats data into a short integer variable?

i

hi

hh

li

lli

2 points

QUESTION 50

Which of the following format specifications can be used to read the following input?

15 X 5.4

%d%c%f

%d%c%9.4f

%d %c %.4f

%d %c %9f

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Semantics In Databases Second International Workshop Dagstuhl Castle Germany January 2001 Revised Papers Lncs 2582

Authors: Leopoldo Bertossi ,Gyula O.H. Katona ,Klaus-Dieter Schewe ,Bernhard Thalheim

2003rd Edition

3540009574, 978-3540009573

More Books

Students also viewed these Databases questions