Please review these 17 questions and let me know if you think that my answer are right. If you think that they are wrong then please give me a reason why. Also don't comment about how I should not be asking for help. These questions are only a fraction of the work I have to do and I just need help understanding them.
1. Some of the differences between compilers and interpreters are:
A. To execute a program, compilers only need the source code once; translators always need the source code
B. Both compilers and interpreters produce object code
C. Interpreters translate each line of source code every time they are run; this is not true for compilers
D. The process of compiling is more expensive in terms of computing resources than the interpretation process
E. Both A and C
F. A, B, and C are correct
MY ANSWER: E
2. Match the Operating System characteristic on the left with the best definition on the right.
Single user OS
Multi-user OS
Multi-tasking OS
Single-tasking OS
Real-time OS
A. Used for running programs that need deterministic performance.
B. A truly "personal" OS. The DOS operating system was like this.
C. A timesharing OS
D. Supports any number of users, but more importantly allows more than one task at a time.
E. Can support any number of users, but run only one task at a time.
MY ANSWER(S): B,C,D,E,A
3. For a programming language to exhibit machine independence, it must (pick the BEST answer):
A. Have nothing to do with the computer hardware implementation.
B. Answers A and D.
C. Be first processed via an Assembler
D. Like Java and use a JRE.
MY ANSWER: A
4. Source code written in symbolic machine language (mnemonics) is translated by what kind of translator? (Short Answer Question)
MY ANSWER: Compiler
5. You might choose to write a program in a High-Level Language because (pick the BEST answer):?
A. Conserving memory usage is necessary
B. Execution efficiency is not a big concern
C. Readability is not a concern
D. Machine dependency is a must
MY ANSWER: C
6. Mnemonics are the words used for writing High-Level Language commands
True/False
MY ANSWER: TRUE
7. Match the items on the left with the appropriate items on the right.
1. Fetch
2. Decode
3. Execute
4. Writeback
5. ALU
A. Writes result back to memory
B. Separates an instruction into separate parts called the Opcode and Parameters
C. Does the work specified by the instruction
D. Performs operations like addition and subtraction
E. Retrieves an instruction from memory
MY ANSWER: E,B,C,A,D
8. Some of the major components of a computer are:
A. Power supply, motherboard, graphics card
B. Power supply, USB controller, Input/Output device
C. Motherboard, graphics card, BIOS
D. Memory, monitor, motherboard
MY ANSWER: C
9. All three types of translators produce machine code
True/False
MY ANSWER: TRUE
10.Main memory is typically larger than cache memory
True/False
MY ANSWER: TRUE
Computer Science Homework Help
Page 1 of 12 Replies - 1492 Views - Last Post: 02 September 2013 - 08:32 PM
Replies To: Computer Science Homework Help
#2
Re: Computer Science Homework Help
Posted 02 September 2013 - 08:29 PM
Actually, you should first justify your answers before we can help you understand why your answer is correct or incorrect. Without your justification of an answer, it's just like doing the practice tests at the DMV: "Oh! That answer was wrong?!?! I'll try a different answer next time, or wait for somebody to tell me what the correct answer is."
#3
Re: Computer Science Homework Help
Posted 02 September 2013 - 08:32 PM
4. Symbolic machine language (i.e. assembly code) is translated
into machine code by an assembler. High-level source code (i.e. Java)
is translated into byte code (i.e. assembler) by a compiler.
5. Usually high-level languages are platform independent. Their
executables may not be, but the language itself it. If you want
to write a program that is multi-platform, you'd choose a
high-level language. Arguably, A is true, but D is the best answer.
If readability wasn't a concern, then I could write in assembler, since
no one but me needs to understand it. That's not a good idea for the
sake of the next programmer coming to maintain the code.
6. I've never heard of the word "Mnemonics" used in programming, but
based on question 4, I take it to mean assembler. If that's true,
then it's false. They are the words used to write low-level commands
(i.e. assembler).
8. Terrible answer selection, but C sounds equally likely to be correct.
9. False, only assemblers produce machine code. Compilers produce assembler
and interpreters just run the program as is.
into machine code by an assembler. High-level source code (i.e. Java)
is translated into byte code (i.e. assembler) by a compiler.
5. Usually high-level languages are platform independent. Their
executables may not be, but the language itself it. If you want
to write a program that is multi-platform, you'd choose a
high-level language. Arguably, A is true, but D is the best answer.
If readability wasn't a concern, then I could write in assembler, since
no one but me needs to understand it. That's not a good idea for the
sake of the next programmer coming to maintain the code.
6. I've never heard of the word "Mnemonics" used in programming, but
based on question 4, I take it to mean assembler. If that's true,
then it's false. They are the words used to write low-level commands
(i.e. assembler).
8. Terrible answer selection, but C sounds equally likely to be correct.
9. False, only assemblers produce machine code. Compilers produce assembler
and interpreters just run the program as is.
Page 1 of 1

New Topic/Question
Reply


MultiQuote


|