Solar Prep Questions Flashcards
What languages require an interpreter ?
Python, JavaScript, Ruby
What do Python, JavaScript and Ruby all have in common ?
They require an interpreter
Examples of Data Structures in Python
Sets, Lists, Tuples
In Python, Sets, Dictionaries, Lists and Tuples are all what ?
Data Structures
What are three constructs in Python ?
For loop
While loop
Range Function
In Python the For Loop, While Loop and Range Function are all what ?
Constructs
7 Operators in Python
Arithmetic Relational Assignment Logical Membership Identity Bitwise
Three error types in programming ?
Runtime
Logic
Syntax
The step-by-step procedure that defines a set of instructions executed in a certain order to get the desired output is referred to as what?
An Algorithm
What are the stages of the Software Development Cycle ?
Analysis Design, Implementation/Programming, Testing, Documentation, Evaluation and Maintenance
Advantages of using a compiler ?
Runs quickly as compiled programs have already been translated.
Can be supplied as an executable file. They cannot be easily modified.
Take up less memory space.
Function naming conventions
Lower case letters.
Separate words with an underscore
my_function
Python Naming conventions
Can’t start with a number
Can’t have a space. Use an underscore instead
Broad types of Sorting Algorithms
Integer Sorts and Comparison Sorts
Example of some sorting algorithms
Quick Sort Bubble Sort Merge Sort Insertion Sort Selection Sort Heap Sort Radix Sort Bucket Sort
The order in which instructions occur and are processed. Statements usually run one after another unless one of the other programming constructs is used.
Sequence
Makes a decision that determines which path a program takes when it is running. A section of code is only run if a condition is met.
Selection
The repeated execution of a section of code when a program is running. Repeats a section of code unless told otherwise or meets a condition. Looping.
Iteration
What languages use a compiler ?
C, C+, Java