Solar Prep Questions Flashcards

1
Q

What languages require an interpreter ?

A

Python, JavaScript, Ruby

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What do Python, JavaScript and Ruby all have in common ?

A

They require an interpreter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Examples of Data Structures in Python

A

Sets, Lists, Tuples

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In Python, Sets, Dictionaries, Lists and Tuples are all what ?

A

Data Structures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are three constructs in Python ?

A

For loop
While loop
Range Function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In Python the For Loop, While Loop and Range Function are all what ?

A

Constructs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

7 Operators in Python

A
Arithmetic
Relational
Assignment
Logical
Membership
Identity
Bitwise
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Three error types in programming ?

A

Runtime
Logic
Syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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?

A

An Algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the stages of the Software Development Cycle ?

A
Analysis
Design, 
Implementation/Programming, Testing, 
Documentation, 
Evaluation 
and Maintenance
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Advantages of using a compiler ?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Function naming conventions

A

Lower case letters.
Separate words with an underscore
my_function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Python Naming conventions

A

Can’t start with a number

Can’t have a space. Use an underscore instead

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Broad types of Sorting Algorithms

A

Integer Sorts and Comparison Sorts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Example of some sorting algorithms

A
Quick Sort
Bubble Sort
Merge Sort
Insertion Sort
Selection Sort
Heap Sort
Radix Sort
Bucket Sort
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

The order in which instructions occur and are processed. Statements usually run one after another unless one of the other programming constructs is used.

A

Sequence

17
Q

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.

A

Selection

18
Q

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.

A

Iteration

19
Q

What languages use a compiler ?

A

C, C+, Java