100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CPSC 120A Exam 1 Review Questions With Complete Solutions $10.99   Add to cart

Exam (elaborations)

CPSC 120A Exam 1 Review Questions With Complete Solutions

 0 view  0 purchase
  • Course
  • CPSC 120A
  • Institution
  • CPSC 120A

CPSC 120A Exam 1 Review Questions With Complete Solutions

Preview 2 out of 8  pages

  • November 2, 2024
  • 8
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CPSC 120A
  • CPSC 120A
avatar-seller
Classroom
CPSC 120A Exam 1 Review Questions With Complete
Solutions

A makefile defines how to build certain files. What is the
technical term for a file that gets created with make? Correct
Answer target

Bisection debugging involves adding the cout statement inside
the suspicious area. Where should you place the cout statement?
Correct Answer in the middle of the suspicious area

Complete the sentence: A forward declaration is necessary
when... Correct Answer a function is called before it is defined.

Consider the following question that is asked verbally in class:

"This is stupid and I'm over it."

Does this question meet the six criteria for being a productive
question? Correct Answer no, the question reflects poor
etiquette

Consider the following question, that is asked verbally in class:

"I'm working on debugging a compile error in today's lab. Help"

Does this question meet the six criteria for being a productive
question? Correct Answer no, the asker needs to say how the
problem arises, but did not

Consider the following question, that is verbally asked in class:

, "Im working on testing part 3 of today's lab. I'm getting a logic
error. The 700 test case should output 0 but instead it outputs -
1."

Does this question meet the six criteria for being a productive
question? Correct Answer yes

Fill in the blank: VS code is a... Correct Answer text editor

In addition to a computer, which device do you need to install
Linux Correct Answer a USB drive

Suppose that a program defines a function. How many times can
main call the function? Correct Answer any number of times

Suppose you have a file named tictactoe.cc which is a C++
source file. It implements a Tic Tac Toe game. What choice
below is the best command to compile the source file to a
program? Correct Answer clang++ tictactoe.cc

The command:

~/cpp-hello-world$ a.out

was intended to run the program named a.out, but did not due to
an error. What is the best explanation for the error? Correct
Answer Usage error: the filename needs to be preceded with ./,
so the command is

~/cpp-hello-world$ ./a.out

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 Classroom. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

81989 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
$10.99
  • (0)
  Add to cart