100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COMPUTER SCIENCE FINAL EXAM $13.49   Add to cart

Exam (elaborations)

COMPUTER SCIENCE FINAL EXAM

 7 views  0 purchase
  • Course
  • Institution

COMPUTER SCIENCE FINAL EXAM Define the word "program". Correct answer- A set of instructions to achieve a specified goal. Explain why programming in machine language is undesirable Correct answer- Programming is 1s and 0s is very tedious and problematic. What language uses commands with ...

[Show more]

Preview 2 out of 5  pages

  • May 16, 2022
  • 5
  • 2021/2022
  • Exam (elaborations)
  • Questions & answers
avatar-seller
COMPUTER SCIENCE FINAL EXAM
Define the word "program". Correct answer- A set of instructions to achieve a specified goal.

Explain why programming in machine language is undesirable Correct answer- Programming is
1s and 0s is very tedious and problematic.

What language uses commands with mnemonic names and hexadecimal numbers? Correct
answer- Assembly language

What is the name of the translator used by Assembly Language? Correct answer- Assembler

List 2 of Grace Hopper's accomplishments. Correct answer- Developed program translators &
Developed COBOL

Explain the difference between an interpreter and a compiler. Correct answer- Compilers
translates the entire file and then execute.
Interpreters translate each line and execute each line

What is a "low-level" language? Correct answer- Close to computer language

What is a high-level language? Correct answer- Close to human language

Why do we not simply use English, or any other human language, to program a computer?
Correct answer- English is too ambiguous

What was the first successful programming language for the mathematics and scientific
Community language? Correct answer- FORTRAN

What does FORTRAN stand for? Correct answer- Formula Translator

What community was COBOL created for? Correct answer- business

A program is made up of words, which usually are called what? Correct answer- Keywords

What is the first Java syntax rule? Correct answer- Use only keywords known by the Java
compiler.

List the 3 categories of keywords. Correct answer- Reserved words, pre-defined identifiers and
user-defined identifiers

List 3 examples of Java Reserved Words Correct answer- public, static, void

Java has a large number of libraries that enhance the basic Java language. These libraries contain

, special program modules that perform a variety of tasks to simplify the life of a programmer.
What
are these modules called? Correct answer- methods

List 2 examples of Predefined Identifiers. Correct answer- print and println

What does OOP stand for? Correct answer- Object Oriented Programming

What is the difference between C++ and Java with regards to OOP? Correct answer- C++ gives
you the option to use OOP. Java requires it.

What are the 4 stages of program design? Correct answer- Cryptic Programming Stage
Unstructured, Spaghetti-Programming Stage
Structured Programming Stage
Object Oriented Programming Stage

Why were some programs intentionally written very cryptic in the 1st stage of program design?
Correct answer- Many programs were written intentionally in a very cryptic style that only the
creator of the
program could understand

Why did the first stage of program design not last long? Correct answer- Computers became
cheaper and programmers became more expensive. Programs required
frequent debugging and updating, and the cryptic style usually meant starting a program from
scratch if the creator left the company. Companies could not afford this wasteful approach.

What quick fix statement was used in the 2nd stage of program design? Correct answer- goto

What is the simplest control structure? Correct answer- for

Write the Java statement that will do this action: If your grade is 70 or better, print "You passed!"
Correct answer- if (grade >= 70)
System.out.println("You passed");

Why should indentation be used with control structures? Correct answer- It makes the program
more readable.

Explain the unusual output of program Java0507. Correct answer- The program is meant to
execute multiple statements only if the condition is true.

What do you need to add to a program if you wish to control multiple statements with if. Correct
answer- Create block structure with opening and closing braces.

What statement is used with if for two-way selection? Correct answer- else

Objects contain data and what else? Correct answer- methods

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 $13.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

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