100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COSC 1436 FINAL EXAM WITH ALL CORRECT ANSWERS $12.49   Add to cart

Exam (elaborations)

COSC 1436 FINAL EXAM WITH ALL CORRECT ANSWERS

 4 views  0 purchase
  • Course
  • COSC 1436
  • Institution
  • COSC 1436

COSC 1436 FINAL EXAM WITH ALL CORRECT ANSWERS What happens when a C++ input stream enters the fail state? - Answer-The system does not display an error message, the program continues running, but further input operations with that stream are ignored. A(n) _________ is information that is passed...

[Show more]

Preview 2 out of 6  pages

  • August 29, 2024
  • 6
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • COSC 1436
  • COSC 1436
avatar-seller
Scholarsstudyguide
COSC 1436 FINAL EXAM WITH ALL
CORRECT ANSWERS
What happens when a C++ input stream enters the fail state? - Answer-The system
does not display an error message, the program continues running, but further input
operations with that stream are ignored.

A(n) _________ is information that is passed to a function, and a(n) _________ stores
the information that is received by a function. - Answer-actual argument, formal
parameter

The program that you write to test a fully implemented function is called a(n)
___________. - Answer-driver

Given the function prototype:

void someFunction(int one = 1, int two = 2, int three = 3);

which of the following is an appropriate function call? - Answer-
someFunction(10,20,30);

In C++ functions are used to modularize programs. The advantages of implementing
modularity include: - Answer--Using functions greatly enhances a program's readability
because it reduces the complexity of the function main.
-Once you write and properly debug a function, you can use it multiple times in the
same or different programs.
-Since functions can be independently designed, coded, debugged and tested,
modularizing programs facilitates team programming where multiple programmers
contribute to a single program.

Which of the following are TRUE? - Answer--A function can call another function.
-A function can return values input by the user.
-A function is executed when it is called.

A function __________ contains the statements that make up the function body. -
Answer-definition

For successful function execution, when arguments are passed between the calling
code and the called function, the actual arguments and their corresponding formal value
parameters must be matched by: - Answer-their order or relative positions in the
argument and parameter list

, The scope of any named variables in a function prototype are limited to only the
______. - Answer-function definition's body

Which of the following function calls is NOT valid for the function prototype?

void workItOut(int p, double q); // function prototype - Answer-workItOut('5',2.5);

Which of the following function calls is valid for the function prototype?

int calculation(int m, char p, double q); // function prototype - Answer-cout <<
calculation(10,'r',7.0);

A function prototype is also known as the __________. - Answer-function declaration

To document or display the subproblems or functional components of a program use -
Answer-structure or hierarchy chart

Which of the following does NOT show the proper use of calling the math library pow()
function? (Assume all variables are of type double.) - Answer-pow(2.0,3.0);

This type of variable is defined inside a function and is not accessible outside the
function. - Answer-local
The term GB refers to a gigabyte which is approximately a _____ bytes. - Answer-billion

An undeclared identifier is an example of a: - Answer-syntax error

An instruction to the computer to subtract two numbers when you meant to multiply
them is an example of a - Answer-logic error

Which of the following is a preprocessor directive? - Answer-#include <iostream>

The program used to translate a source code program to a machine language object
module is: - Answer-compiler

An instruction to divide by zero causes a(n): - Answer-run time or execution error

The ____ rules of a programming language tell you which statements are grammatically
correct or legal for the programming language. - Answer-syntax

When you build a program, the linker - Answer-assembles all the functions, yours and
the system's, into a final executable program

Which of the following is the correct order of the steps required to execute program
written in C++? - Answer-preprocess, compile, link, load

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Scholarsstudyguide. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

73243 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.49
  • (0)
  Add to cart