Core concepts Flashcards

1
Q

What is programming?

A

Programming is the act of constructing a program—a set of precise instructions telling a computer what to do.

The art of programming is to take an idea of how a software should run and break it apart into smaller steps, and know how to write these pieces in statements in a programming language, in the right order, in the right syntax so that the machine can read it and perform the action. (lynda.com: Programming foundations: Fundamentals)

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

What is a programming language?

A

A programming language is an artificially constructed language used to instruct computers.

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

What is machine code?

A

Machine code, also known as machine language, is read by the computer’s central processing unit (CPU), is composed of digital binary numbers and looks like a very long sequence of zeros and ones.

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

What is a high-level programming language?

A

A high-level language (HLL) is a programming language such as C, FORTRAN, or Pascal that enables a programmer to write programs that are more or less independent of a particular type of computer.

Such languages are considered high-level because they are closer to human languages and further from machine languages.

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

What is source code?

A

Source code is any collection of code, possibly with comments, written using a human-readable programming language, usually as plain text.

https://www.webopedia.com/TERM/S/source_code.html

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

What is a bit?

A

A bit (short for binary digit) is the smallest unit of data on a computer; each bit has a single value of either 1 or 0.

https://whatis.techtarget.com/definition/bit-binary-digit

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

What is a variable?

A

When you write any programming language, you need to keep track of data.

A variable is a container that holds data. You grab a piece of the computer memory to hold data, name it and put a value in it, like an email address like a name or number.

https://whatis.techtarget.com/definition/variable

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

What is data type?

A

The data type defines which operations can safely be performed to create, transform and use the variable in another computation.

https://searchmicroservices.techtarget.com/definition/data-type

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

What is a statement?

A

Statements are sentences in programming languages that use numbers, words and punctuation.

The way you write statements depends on the programming language.

Lynda.com: Programming foundations: Fundamentals

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

What is the difference between variable values and constant / fixed values?

A

Variable values can change, depending on conditions or on information passed to the program.

Constants or fixed values never change.

https://whatis.techtarget.com/definition/variable

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

What is the difference between a strongly typed and weakly typed language?

A

In a weakly typed language, you can create any variable, give it a name and put a value in it.

Strong typed language, have different kinds of variables for different kinds of data.

Lynda.com: Programming foundations: Fundamentals

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

What is a string variable?

A

Strings = One or two characters strung together

Lynda.com: Programming foundations: Fundamentals

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

What is an operator?

A

In mathematics, an operator is a character that represents an action, as for example x is an arithmetic operator that represents multiplication.

https://whatis.techtarget.com/search/query?q=operators

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

What are conditional statements?

A

Code that sometimes runs and sometimes doesn’t based on the conditions of the programme at the time, i.e. on whether a programmer-specified boolean condition evaluates to true or false.

Lynda.com: Programming foundations: Fundamentals
https://en.wikipedia.org/wiki/Conditional_(computer_programming)

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

What is a switch statement?

A

Switch statements compare a given value with specified constants and take action according to the first constant to match. There is usually a provision for a default action (‘else’,’otherwise’) to be taken if no match succeeds.

https://en.wikipedia.org/wiki/Conditional_(computer_programming)#Case_and_switch_statements

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

What is modular programming?

A

Modular programming is a software design technique that emphasizes separating the functionality of a program into independent, interchangeable modules, such that each contains everything necessary to execute only one aspect of the desired functionality.

https://en.wikipedia.org/wiki/Modular_programming

17
Q

What is a function?

A

A function is a block of JavaScript that robotically does the same thing again and again, whenever you invoke its name. It saves you repetitive coding and makes your code easier to understand.

Myers, 2015, Smarter way to learn JavaScript