Question

In: Computer Science

What is machine language and how does it process input written in different scripting languages? How...

  • What is machine language and how does it process input written in different scripting languages? How user input is converted to output (give a detailed example)
  • CPU
  • ALU
  • BIOS
  • GPU
  • Volatile and Non-Volatile memory
  • What is the role of the OS?

Solutions

Expert Solution

MACHINE LANGUAGE : A programming language used by the computer in the form of 0 (zero) or 1 (one) as binary numbers to develop a program is called Machine Language. It is also known as Binary Language and First Generation computer programming Language. The need of translator is not in this Language because it is computer own language.

Machine Language is platform dependent because it differ in operating systems and processors. For example, Program written in machine language in one computer that having Windows operating System can not be work in another computer that has DOS operating system. Each Operating System has its own compilation method to convert a programming language in to Machine Language. Program execution speed of Machine Language is faster than other programming Languages.

Computer programs are written in different scripting Languages like Java Script, Python etc. But, Computer can only understand the Machine Language. So, we need to convert this program code (source Code) in to Machine Language (machine code) using an interpreter. When the Scripting Language codes are run, it automatically interpreted to machine code and produce an output of the Program. No need of compilation step.

SOURCE CODE OF SCRIPTING LANGUAGE   INTERPRETER (Machine Code)   OUTPUT  

If the user input is given in the form of Text , the computer converted it into binary code or machine code using ASCII ( American Standard Code for Information Interchange) values. For example, the text ' HELLO ' to machine code as below

CHARACTERS H E L L O
ASCII VALUES 072 069 076 076 79
BINARY CODE 01001000 01000101 01001100 01001100 01001111


Related Solutions

Interpreter and compiler are two methods to convert high level languages to machine language. How Python...
Interpreter and compiler are two methods to convert high level languages to machine language. How Python and C++ language works?
What is the primary goal in using a scripting language for programming work?
What is the primary goal in using a scripting language for programming work?
(a) How Context Free languages are different from Regular languages. (b) What are the automata accepting...
(a) How Context Free languages are different from Regular languages. (b) What are the automata accepting those languages and how they are different from DFA and NFA. (c) How the grammar of Context Free Languages looks different from those in Regular languages.
(quarta/a) There are a number of different services written in various computing languages and platforms. Explain...
(quarta/a) There are a number of different services written in various computing languages and platforms. Explain how these services can work together to ensure seamless services.PLEASE write your answer in your own words!thanks
Describe the relationship between different types of software/languages and the type of machine with which they...
Describe the relationship between different types of software/languages and the type of machine with which they are compatible.
What are the different types of decisions, and how does the decision-making process work?
What are the different types of decisions, and how does the decision-making process work?
What role does the mental lexicon play in the language comprehension process?
What role does the mental lexicon play in the language comprehension process?
How does a fixed input differ from a variable input?What does a cost function show?What is...
How does a fixed input differ from a variable input?What does a cost function show?What is marginal cost?Is the marginal cost likely to be constant regardless of the level of output produced?What is the relationship between a firm’s marginal cost curve and its output supply curve? ( Please type it,thanks)
1. What different types of data can be part of a machine language instruction? 2. What...
1. What different types of data can be part of a machine language instruction? 2. What are some differences between RISC and CISC computers? 3. What is the general architecture of most modern computers: VonNeumann, Harvard, or Modified Harvard? 4. What descriptors from 2 and 3 above would you use to classify today's personal computers? 5. Why is it important to know whether a machine is Big-Endian or Little Endian when converting 16-bit or 32-bit data from one type of...
What are the different types of decisions and how does the decision-making process work? How do...
What are the different types of decisions and how does the decision-making process work? How do information systems support the activities of managers and management decision making? *List and describe the different levels of decision making and decisions making constituencies’ in organizations. Explain how their decision making requirements differ. *Distinguish between an unstructured, semi structured, and structured decision. *List and describe the stages in decision making. *Compare the descriptions of managerial behavior in the classical and behavioral models. *Identify the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT