Mod 9 Day 2 Flashcards
What kind of program does a script require to change the source code into machine code
Interpreter
True or false, unlike an interpreter the compiler reads one line of code parses and understands the code converts it into machine code and executes the line of code
False
An interpreter ensures that a single line of source code is in the correct syntax and translates it into machine code
True
a compiler ensures that every line of the source code is correct syntax translates all of it into machine code and executes all the instructions
False
In object-oriented programming an object is known as the blueprint of a class and it does not exist until initiated by the programmer
False
The following scripting languages use objects. Choose all that apply A. Bash B. HTML C. Python D. PowerShell
B
C
D
Which of the following are General types of decision statements: A. If B. For C. Foreach D.while
A
B
C
D
Choose all that apply. Which of the following are General types of looping statements A. If B. For C. Foreach D. While
A
B
C
D
Choose all that apply. The loop can stop in interation or exit early using the following statements: A. Break B. Continue C. Return D. All of the above
A
B
Which of the following statements are true?
A. Variables do not need to be declared before use
B. Variables can be used after declaring them
C. Variables never have a data type
D. All programming languages have the data type of an integer
B
Choose all that apply. typically in an interpreted language to declare a variable you need to supply which of the following pieces of information. A. An identifier / name B. A data type C. An initial value D. An assignment operator
A
B
C
This is a variable that contains multiple values often of different data types
Array
These structures are made up of branching and looping statements which determine which sections of code executes and how many times specific code segments execute
Flow control
There are three basic scripting components what are they
Sequential action
Repetition structure
Branching structure
A linear progression of tasks such as input, output, and computation
Sequential action