Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

COMPUTER SCIENCE FINAL EXAM question with answers

Rating
-
Sold
-
Pages
5
Grade
A+
Uploaded on
24-03-2025
Written in
2024/2025

COMPUTER SCIENCE FINAL EXAM question with answers

Institution
COMPUTER SCIENCE
Course
COMPUTER SCIENCE

Content preview

COMPUTER SCIENCE FINAL EXAM
question with answers
Define the word "program". - - A set of instructions to achieve a specified goal.

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

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

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

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

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

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

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

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

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

-What does FORTRAN stand for? - - Formula Translator

-What community was COBOL created for? - - business

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

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

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

-List 3 examples of Java Reserved Words - - 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? - - methods

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

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

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

-What are the 4 stages of program design? - - 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? - - 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? - - 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? - - goto

-What is the simplest control structure? - - for

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

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

-Explain the unusual output of program Java0507. - - 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. - - Create block structure with opening and closing braces.

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

-Objects contain data and what else? - - methods

Written for

Institution
COMPUTER SCIENCE
Course
COMPUTER SCIENCE

Document information

Uploaded on
March 24, 2025
Number of pages
5
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$8.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
eduustudent stuvia
View profile
Follow You need to be logged in order to follow users or courses
Sold
17
Member since
1 year
Number of followers
0
Documents
1687
Last sold
3 weeks ago

3.0

4 reviews

5
2
4
0
3
0
2
0
1
2

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions