Skip to content

Latest commit

 

History

History
46 lines (41 loc) · 2.89 KB

unused-notes.md

File metadata and controls

46 lines (41 loc) · 2.89 KB

The difference between these two families of languages is when the types are checked (ahead run-time or in run-time). E.g., the operation a+b where a=1 and b='Hello' is illegal (what does it mean?). A static language will check whether the types of the variables (a and b in this example) lead to correct instructions before being run, at compilation time. A dynamic language will only check it in run-time, when the operation is interpreted. As we have learned static vs. interpreted is about the translation process, whereas static vs. dynamic is about the type checking.

Test

Straight from a book, not in github

1.1 What is a program? 1.2 What is hardware? 1.3 List the five major components of a computer system. 1.4 What part of the computer actually runs programs? 1.5 What part of the computer serves as a work area to store a program and its data while the program is running? 1.6 What part of the computer holds data for long periods of time, even when there is no power to the computer? 1.7 What part of the computer collects data from people and from other devices? 1.8 What part of the computer formats and presents data for people or other devices? 1.9 What fundamental set of programs control the internal operations of the computer’s hardware? 1.10 What do you call a program that performs a specialized task, such as a virus scanner, a file compression program, or a data backup program? 1.11 Word processing programs, spreadsheet programs, email programs, web browsers, and game programs belong to what category of software? 1.12 What amount of memory is enough to store a letter of the alphabet or a small number? 1.13 What do you call a tiny “switch” that can be set to either on or off? 1.14 In what numbering system are all numeric values written as sequences of 0s and 1s? 1.15 What is the purpose of ASCII? 1.16 What encoding scheme is extensive enough to represent the characters of many of the languages in the world? 1.17 What do the terms “digital data” and “digital device” mean? 1.18 A CPU understands instructions that are written only in what language? 1.19 A program has to be copied into what type of memory each time the CPU executes it? 1.20 When a CPU executes the instructions in a program, it is engaged in what process? 1.21 What is assembly language? 1.22 What type of programming language allows you to create powerful and complex programs without knowing how the CPU works? 1.23 Each language has a set of rules that must be strictly followed when writing a program. What is this set of rules called? 1.24 What do you call a program that translates a high-level language program into a separate machine language program? 1.25 What do you call a program that both translates and executes the instructions in a high-level language program? 1.26 What type of mistake is usually caused by a misspelled key word, a missing punctuation character, or the incorrect use of an operator?