Question

In: Computer Science

1. Why a computer can perform some tasks for us? 2. What computer device could Fetch...

1. Why a computer can perform some tasks for us?

2. What computer device could Fetch instructions, follow the instructions, and produce some results?

3. What is the function of computer memory (RAM)? What is used to translate each source code instruction into the appropriate machine language instruction?

4. What is the correct sequence in the process of translating a source file into an executable file?

5. The step that will uncover any syntax errors in your program is ________________.

6. What is a set of rules that must be followed when constructing a program?

Solutions

Expert Solution

Q 1. Why a computer can perform some tasks for us?

Ans: As we know hat the computer is a electronic device that perform the variety of tasks on the data.And this tasks are basically related to the four basic computer operations:

  • Input
  • Output
  • Processing
  • Storage

And also we know that with the use of the computer we can increase the productivity of work, and in simple word we can do any thing that we want in very less time.So, with that all thing we all use the computers.

Q 2. What computer device could Fetch instructions, follow the instructions, and produce some results?

Ans: CPU (central processing unit) fetch the instructions , follow the instructions and produce some results.The CPU is called the brain of the computer that perform most of all processes in the computer.The CPU is basically consists of the two parts: 1) Control Unit 2) Arithmetic and Logic Unit.This is also responsible for the determineing to get the next instruction and it also regulate the other component of the computer.

Q 3 What is the function of computer memory (RAM)? What is used to translate each source code instruction into the appropriate machine language instruction?

Ans: RAM stands for the Random-Access Memory.Basically it is a type of computer data storage .It store the file that are use when the computer is running.The following functions of the RAM are as follows:

  • RAM is the main memory of the computer.
  • RAM stores the program and data that are accessed directly by the processor.
  • Basically RAM holds the temporary instructions and data that are needed to complete the tasks.
  • It stores the data before and after the processing.

Compilers are used to translate source code instruction into the appropriate machine language instruction.Basically the compiler translates the programs that are written in a high level language into Machine Language.The reason for translating source code is to create the executable program.

Q 4. What is the correct sequence in the process of translating a source file into an executable file?

Ans: The correct sequences in the process of translating the source file into an executable file are as:

  1. Source code
  2. Preprocessor
  3. Modified source code
  4. Compiler
  5. Object code
  6. Linker
  7. Executable Code

Q 5. The step that will uncover any syntax errors in your program is ________________.

Ans: The step that will uncover any syntax errors in your program is Compiling. As we know that the syntex error are mistakes in using the language.The example of the syntex error may be the missing a quotation or a comma  or misspelling a word.

Q 6. What is a set of rules that must be followed when constructing a program?

Ans: As we know that the every programming languages are a certain set of rules and regulations.So, we as a programmer must follows these rules and regulation while writing the program in any languages.And that rules are called the syntex.

THANKS , i think this will give you a better intuition about your questions. If you have any doubt fell free to ask in the comment section.


Related Solutions

What are some specific tasks that a human ressource specialist could do for curt?
What are some specific tasks that a human ressource specialist could do for curt?
1. a) Describe some of the different type of system administration tasks that could be automated...
1. a) Describe some of the different type of system administration tasks that could be automated through scripting. b) Give an example of when an interpreted programming language is more appropriate to use than a compiled language. Are there any circumstances where a system administrator would want to use a compiled language? c) People have DHCP in your home network and may not even realize it. How is DHCP implemented in your home? d)What are the advantages of deploying DHCP...
Perform the following tasks with NumPy arrays. All of them can be done (elegantly) in 1...
Perform the following tasks with NumPy arrays. All of them can be done (elegantly) in 1 to 3 lines. (a) Create an 8 × 8 array with ones on all the edges and zeros everywhere else. (b) Create an 8 × 8 array of integers with a checkerboard pattern of ones and zeros. (c) Given the array c = np.arange(2, 50, 5), make all the numbers not divisible by 3 negative. (d) Find the size, shape, mean, and standard deviation...
1. Why is learning to perform Leopold's maneuvers important? 2. what can you learn from this...
1. Why is learning to perform Leopold's maneuvers important? 2. what can you learn from this procedure? 3. What would contraindications be to performing this maneuver?
How could AIS reduce threats? What information does marketing need to perform its tasks better?
How could AIS reduce threats? What information does marketing need to perform its tasks better?
1) This Device Type is connected to the computer case computer.
1) This Device Type is connected to the computer case computer.                        A)        Internal Device                        B)        External Device                        C)        Peripheral Device                        D)        Network Device                        E)        I/O Devices2)         What Does the Operating System use to manage and operate peripheral devices?            _______________________________3)         How Many IRQ’s can be assigned on a system.                        A)        8                        B)        16                        C)        32                        D)        64
What are some of the technical skills needed to perform computer forensic investigations? What kinds of...
What are some of the technical skills needed to perform computer forensic investigations? What kinds of clues or evidence does the forensic auditor need to collect to try and track the internal or external hacker?
1. Should the US follow a more protectionist trade policy? Why or why not? What could...
1. Should the US follow a more protectionist trade policy? Why or why not? What could be some measures the US can impose to restrict international trade? How would these measures affect the US trade balance, the current account balance, the capital account balance and the value of the dollar? Explain.
A computer is shared by 2 users who send tasks to a computer remotely and work...
A computer is shared by 2 users who send tasks to a computer remotely and work independently. At any minute, any connected user may disconnect with probability 0.5, and any disconnected user may connect with a new task with probability 0.2. Let X(t) be the number of concurrent users at time t (in minutes). This is a Markov chain with 3 states: 0, 1, and 2. The probability transition matrix can be calculated and it is Generate 10000 transitions of...
Pointer Tasks This part of the assignment will give you a chance to perform some simple...
Pointer Tasks This part of the assignment will give you a chance to perform some simple tasks with pointers. The instructions below are a sequence of tasks that are only loosely related to each other. Start the assignment by creating a file named pointerTasks.cpp with an empty main function, then add statements in main() to accomplish each of the tasks listed below. Some of the tasks will only require a single C++ statement, others will require more than one. For...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT