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

Exam (elaborations)

CPSC 120A Exam 1 Review Questions With Proper Answers

 2 views  0 purchase
  • Course
  • CPSC 120
  • Institution
  • CPSC 120

CPSC 120A Exam 1 Review Questions With Proper Answers

Preview 2 out of 5  pages

  • November 7, 2024
  • 5
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • CPSC 120
  • CPSC 120
avatar-seller
ElevatedExcellence
CPSC 120A Exam 1 Review Questions
With Proper Answers
Which shell command shows the contents of a directory (a folder)? CORRECT
ANSWERS ls

Which shell command changes directory to cpsc120? CORRECT ANSWERS cd
cpsc120

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 ANSWERS clang++ tictactoe.cc

You need to send all the changes you've committed to a git repository to GitHub so your
instructor can see it too. What is the best command that will send all your committed
changes to GitHub? CORRECT ANSWERS git push

Fill in the blank: VS code is a... CORRECT ANSWERS text editor

What error type is this?
clang: error: no such file or directory
clang error: no input files CORRECT ANSWERS command line error

What error type is this?
hello.cc:4:7: error: cannot initialize a
int x = "bye"; CORRECT ANSWERS syntactical error

What error type is this?
The sum of 5 and 6 is -1. CORRECT ANSWERS logical error

What does this statement do?

x = 13; CORRECT ANSWERS assignment

What does this statement do?

std::cout << "\n" CORRECT ANSWERS print a newline character

What does this statement do?

std::cout << x; CORRECT ANSWERS print x to a standard output

What does this statement do?

, std::cin >> x; CORRECT ANSWERS read x from standard input

What is the technical term for the name of a variable? CORRECT ANSWERS identifier

There is a technical term for syntax that uses operators to yield a value. For example, in

int a{ b + 1 };

"b + 1" is this kind of syntax. What is the term? CORRECT ANSWERS expression

There is a technical term for a value written directly into source code. For example, in

std::cout << 20.8;

20.8 is one of these kinds of values. What is the term? CORRECT ANSWERS literal
value

In addition to a computer, which device do you need to install Linux CORRECT
ANSWERS a USB drive

Which method of installing Linux is recommended for this course? CORRECT
ANSWERS native install

Which source do we use to define a technical term? CORRECT ANSWERS glossary

Which source do we use to clarify command usage? CORRECT ANSWERS manpages

Which is the first source we use to clarify syntax? CORRECT ANSWERS cplusplus.com

Which is the first source we use to discover a tool? CORRECT ANSWERS
cplusplus.com

Which is the first source we use to ask a question? CORRECT ANSWERS expert

When discovering a tool, there is one particular C++ library that you should explore,
after the table of contents. What is the name of this library? CORRECT ANSWERS
Algorithms

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
ANSWERS yes

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 ElevatedExcellence. 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)

77241 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