Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Worksheet 3 : Computer Operations and Programming Languages Learning Outcomes: 1 . Describe the fetch - decode - execute cycle. 2 . Describe machine, low
Worksheet : Computer Operations and Programming Languages
Learning Outcomes:
Describe the fetchdecodeexecute cycle.
Describe machine, lowlevel, and highlevel programming languages
Describe a compiler and an interpreter
Using Python
Understanding Instruction Set
Every CPU has an instruction set, which explains how instructions in a program written in a machine language are decoded and executed. Such instructions must be fetched from the memory, decoded, and executed on the CPU. This process is repeated millions or billions of times, which is why it is called fetchdecodeexecute. Using the Sample Instruction Set that is provided describe two of the instructions in the Instruction Set.
Using the Sample Instruction Set, describe the instructions AC and F in English
Machine language: the only programming language that the computer can directly understand. An assembly language is a lowlevel programming language. What would you say are the differences between machine, assembly and highlevel programming languages?
Some highlevel languages are compilerbased, and some are interpreterbased. A compiler translates a program written in highlevel programming language source code to a program in machine language machine code The resultant machine code can then be executed on any CPU. An interpreter translates and executes the source code. There are thousands of such highlevel languages in practice. List highlevel programming languages and categorize as either compilerbased or interpreterbased.
Use IDLE to enter the following programs and execute. Write down their outputs.
a printThe classroom for CSC is ST
b printThe name of my university is
Fayetteville State University
c printThis book is Johns
d printWelcome to the world of programming in Python
It is not difficult as imagined
e print# is used to comment out part of the program you do not want execute
f printYou can also use triple quotes for comments of multiple lines
g printThe help command is very important for finding information
about functions and commands implemented in Python
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started