Computer Science > EXAM > COMPUTER SCIENCE FINAL EXAM (All)
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 ans... wer- 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"); [Show More]
Last updated: 2 years ago
Preview 1 out of 6 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Sep 16, 2022
Number of pages
6
Written in
This document has been written for:
Uploaded
Sep 16, 2022
Downloads
0
Views
36
In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·