4.2 - programming languages + IDEs ๐Ÿง‘โ€๐Ÿ’ป Flashcards

1
Q

what tiers can programming languages be sorted into?

A

HLLs (easier for humans to read and understand due to them being closer to English in syntax and command words) and low-level machine + assembly code (the former being device-readable binary code that the latter needs to be converted into)

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

why is machine code usually displayed in hexadecimal form?

A

as itโ€™d be harder for humans to understand it in binary

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

why are HLLs the best options for human programmers?

A

theyโ€™re independent of device type and also easier + quicker to understand, maintain, write in, and debug

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

how can HLLs be problematic?

A

itโ€™s harder for them to make use of special hardware like low-level languages do - they can also result in larger files that take longer to execute

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

when is assembly code used?

A

when programmers need to make use of special hardware and machine-dependent instructions to write code that takes up less primary memory space while also performing tasks at lightning speed

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

how do compilers translate HLLs into machine code?

A

they translate each and every single HLL statement into many possible machine code combinations at the same time to produce an executable file of machine code that can be run by the general public without a compiler - an error reportโ€™s produced after all lines have been translated if any errors are found in the code

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

how do interpreters translate HLLs into machine code?

A

they repeatedly translate a single HLL statement that may require lots of machine code combinations at a time during program development without producing an executable file of machine code (making interpreted programs impossible to run otherwise) - execution stops even if a single errorโ€™s found in a single line of code

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

how do assemblers work?

A

they one-off translate assembly language code into binary that can be understood as machine code by a device without the need for any reassembly afterwards

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

how can IDEs help programmers write and develop code?

A

through a built-in code editor, translators from the get-go, runtime + debugging environments, error diagnostics, AutoCorrect, AutoFill, and prettyprinting + indentation by variable/command type

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