Starting out with Visual C# (4th Edition)
4th Edition
ISBN: 9780134382609
Author: Tony Gaddis
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 1, Problem 20MC
Program Plan Intro
Instructions:
Instructions are meant to perform a specific task that is generated in the form of programs.
- When CPU (Central Processing Unit) executes the instructions in a
program , it gives rise to a process called fetch-decode-execute cycle. - It consists of three steps, which will be executed for every instruction in the program.
- The three steps involved in executing the instruction in a program are given as follows:
- Fetch
- Decode
- Execute
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
In the __________ part of the fetch-decode-execute cycle, the CPU determines which operation it should perform.a. fetchb. decodec. executed. immediately after the instruction is executed
The _______________ is a register that holds the address of the next instruction to be executed.
In counter-controlled iteration, a(n)___________ is used to count the number of times a group of instructions should be repeated.
Chapter 1 Solutions
Starting out with Visual C# (4th Edition)
Ch. 1.2 - What is a program?Ch. 1.2 - What is hardware?Ch. 1.2 - List the five major components of a computer...Ch. 1.2 - What part of the computer actually runs programs?Ch. 1.2 - Prob. 1.5CPCh. 1.2 - Prob. 1.6CPCh. 1.2 - Prob. 1.7CPCh. 1.2 - Prob. 1.8CPCh. 1.2 - Prob. 1.9CPCh. 1.2 - What do you call a program that performs a...
Ch. 1.2 - Word processing programs, spreadsheet programs,...Ch. 1.3 - What amount of memory is enough to store a letter...Ch. 1.3 - Prob. 1.13CPCh. 1.3 - Prob. 1.14CPCh. 1.3 - Prob. 1.15CPCh. 1.3 - Prob. 1.16CPCh. 1.3 - Prob. 1.17CPCh. 1.4 - A CPU understands instructions that are written...Ch. 1.4 - Prob. 1.19CPCh. 1.4 - When a CPU executes the instructions in a program,...Ch. 1.4 - What is assembly language?Ch. 1.4 - What type of programming language allows you to...Ch. 1.4 - Prob. 1.23CPCh. 1.4 - What do you call a program that translates a...Ch. 1.4 - What do you call a program that both translates...Ch. 1.4 - Prob. 1.26CPCh. 1.5 - What is a user interface?Ch. 1.5 - How does a command line interface work?Ch. 1.5 - Prob. 1.29CPCh. 1.5 - Prob. 1.30CPCh. 1.6 - What is an object?Ch. 1.6 - Prob. 1.32CPCh. 1.6 - What two general capabilities does an object have?Ch. 1.6 - Prob. 1.34CPCh. 1.6 - What is the purpose of an object that cannot be...Ch. 1.6 - What is a class?Ch. 1.6 - Prob. 1.37CPCh. 1.6 - Why might you need to write your own classes?Ch. 1.7 - Prob. 1.39CPCh. 1.7 - What is an algorithm?Ch. 1.7 - What is pseudocode?Ch. 1.7 - Prob. 1.42CPCh. 1.7 - Prob. 1.43CPCh. 1.8 - Prob. 1.44CPCh. 1.8 - Prob. 1.45CPCh. 1.8 - Prob. 1.46CPCh. 1.8 - Prob. 1.47CPCh. 1.8 - What is a ToolTip?Ch. 1.8 - Prob. 1.49CPCh. 1.8 - Prob. 1.50CPCh. 1 - A(n) __________ is a set of instructions that a...Ch. 1 - Prob. 2MCCh. 1 - Prob. 3MCCh. 1 - Prob. 4MCCh. 1 - Prob. 5MCCh. 1 - Prob. 6MCCh. 1 - Prob. 7MCCh. 1 - Prob. 8MCCh. 1 - Prob. 9MCCh. 1 - Prob. 10MCCh. 1 - Prob. 11MCCh. 1 - Prob. 12MCCh. 1 - Prob. 13MCCh. 1 - Prob. 14MCCh. 1 - Prob. 15MCCh. 1 - Prob. 16MCCh. 1 - Prob. 17MCCh. 1 - Prob. 18MCCh. 1 - If you were to look at a machine language program,...Ch. 1 - Prob. 20MCCh. 1 - Prob. 21MCCh. 1 - The_____ translates an assembly language program...Ch. 1 - The words that make up a high-level programming...Ch. 1 - Prob. 24MCCh. 1 - A(n)_____ is a program that translates a...Ch. 1 - Prob. 26MCCh. 1 - A______ error does not prevent the program from...Ch. 1 - A(n) _______ is a set of well-defined logical...Ch. 1 - An informal language that has no syntax rules and...Ch. 1 - A _______ is a diagram that graphically depicts...Ch. 1 - Objects that are visible in a programs graphical...Ch. 1 - A _____ is code that describes a particular type...Ch. 1 - The _____ is a collection of classes and other...Ch. 1 - The ______ is the part of a computer with which...Ch. 1 - Before GUIs became popular, the ______ interface...Ch. 1 - __________ programs are usually event driven. a....Ch. 1 - Today, CPUs arc huge devices made of electrical...Ch. 1 - Prob. 2TFCh. 1 - Any piece of data that is stored in a computers...Ch. 1 - Prob. 4TFCh. 1 - Machine language is the only language that a CPU...Ch. 1 - Assembly language is considered a high-level...Ch. 1 - An interpreter is a program that both translates...Ch. 1 - A syntax error does not prevent a program from...Ch. 1 - Prob. 9TFCh. 1 - Word processing programs, spreadsheet programs,...Ch. 1 - Programmers must be careful not to make syntax...Ch. 1 - C# provides only the basic keywords and operators...Ch. 1 - Why is the CPU the most important component in a...Ch. 1 - Prob. 2SACh. 1 - Prob. 3SACh. 1 - What are the words that make up a high-level...Ch. 1 - What are the short words that are used in assembly...Ch. 1 - What is the difference between a compiler and an...Ch. 1 - Prob. 7SACh. 1 - Prob. 8SACh. 1 - Prob. 9SACh. 1 - Prob. 10SACh. 1 - Can you use C# alone to perform advanced...Ch. 1 - Prob. 12SACh. 1 - Prob. 13SACh. 1 - Prob. 14SACh. 1 - Prob. 15SACh. 1 - How can you view the projects form if it is not...Ch. 1 - Use what youve learned about the binary numbering...Ch. 1 - Use what youve learned about the binary numbering...Ch. 1 - Look at the ASCII chart in Appendix C and...Ch. 1 - Suppose your instructor gives three exams during...
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- 11. During the first step of the fetch-execute cycle, an instruction is read from main memory and stored in the 12. After being fetched, the instruction is determines which operation is being executed. meaning the CPU circuitry 13. RAM stands for and is generally synonymous with the main memory of a computer. 14. ROM stands for which retains its contents even after the power is turned off. 15. RAM is meaning its contents will be lost when the power is turned off.arrow_forwardWhen the INT instruction executes, what is the first task carried out by the CPU?arrow_forwardIn ____________, the address of the operand is specified in the instruction. a. Stack Addressing b. Register Addressing c. Immediate Addressing d. Direct Addressingarrow_forward
- The LEA instruction computes the effective address of the operand and stores it in the ___b___ operand. a [Choose ] [Choose ] b destination source operand _a____________arrow_forwardNonearrow_forwardThe process of repeating a set of instructions a certain number of times is known as ____________iteration.arrow_forward
- Objective Learn the basic structure of an assembly program, Data Memory Map how to read the 8-bit instruction setreference and Address Offset Data become familiar with a few commands. Ob00001000 1 Ob10010011 Ob00000101 2 Lab 3 4 Task 1: Walk through the assembly program below and fill out the data memory map (right). If a value changes during the program, you only need to 7 record the final value. Unless otherwise stated all 8. memory locations contain a value of 0. 10 11 12 :Program for task 1 :Definitions 13 14 .EQU myData=0x21 .DEF config=R4 15 Ob10100101 Ob10111001 16 17 :Main 18 .CSEG 19 .ORG Ox0000 20 LDI R16, Ob00001000 MOV RO, R16 21 22 LDI R16, Ob10010011 MOV R1, R16 23 24 LDI R16, Ob01010101 ANDI R16,Ob00001111 25 26 MOV R2, R16 ORI R16, Ob10100101 LDI R17,20 ADD R17, R16 27 28 29 MOV R3, R16 30 MOV config, R17 OUT O, R3 31 32 CBI 0,1 IN R5,0 STS myData, RO SBI 1, 6 SBI 1,7 LDS R6, myData 33 1. 34 2 35 3 36 4 37 5 38 6.arrow_forwardIt is the job of this function to count the amount of CPU instructions required by each statement at the source level.arrow_forwardComputer System Design - Modularity QUESTION Please indicate which statements are correct and why (there should be at least 2 correct statements). Thanks.arrow_forward
- The store word instruction is used to... A. Read from a memory address to a CPU register B. Write to a memory address from a CPU register C. Assign a value to a CPU register D. Access a label in a programarrow_forward38. _________ register keeps tracks of the instructions stored in program stored in memory. a. AR (Address Register) b. XR (Index Register) c. PC (Program Counter) d. AC (Accumulator)arrow_forward"IT- COMPUTER SYSTEMS"arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning