Exams Flashcards

1
Q

What are computer languages?

A

Computer languages, also known as programming languages, are used to create software programs and applications that run on electronic devices.

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

Name three popular programming languages.

A
  • C
  • Java
  • Python
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are high-level languages designed for?

A

High-level languages are designed to be easy to read and write, often used for developing applications that require complex logic and algorithms.

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

What is a low-level language?

A

Low-level languages are closer to machine code and are used for developing system-level software.

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

What is the purpose of scripting languages?

A

Scripting languages are used to automate tasks, such as web development or system administration.

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

Define ‘statement’ in the context of computer languages.

A

A statement is telling a computer how to do a desired action using words or instructions.

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

What is ‘syntax’ in programming?

A

Syntax is the structured arrangement of statements.

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

What is an algorithm?

A

An algorithm is a set of instructions written to solve a problem.

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

What do binary numbers represent?

A

Binary numbers are a way of expressing data using 1’s and 0’s.

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

What is coding?

A

Coding is the process of creating computer instructions.

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

What does debugging entail?

A

Debugging is the process of finding and removing errors from a code.

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

What is an assembler?

A

An assembler is a computer program that converts mnemonics to 0’s and 1’s.

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

List two examples of high-level programming languages.

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

What is a compiler?

A

A compiler is a type of translator that converts the entire source code of a program into machine code all at once.

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

How does an interpreter differ from a compiler?

A

An interpreter converts the source code into machine code one line at a time and executes it immediately.

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

What is a phase of a compiler?

A

A phase of a compiler refers to a specific step in the compilation process, such as lexical analysis or semantic analysis.

17
Q

What is one feature of high-level programming languages?

A

Abstraction: They allow programmers to focus on the problem rather than low-level details.

18
Q

What is a pro of high-level languages?

A

Increased productivity due to easier readability and debugging.

19
Q

What is a con of high-level languages?

A

Limited control over system resources.

20
Q

Fill in the blank: High-level languages are generally _______ than low-level languages.

21
Q

What is one limitation of high-level languages?

A

Higher memory usage due to additional overhead.

22
Q

True or False: High-level languages provide automatic memory management.

23
Q

What is the role of built-in libraries in high-level languages?

A

They simplify common tasks, saving time and effort for programmers.

24
Q

What does ‘portability’ refer to in programming languages?

A

The ability of code written in a high-level language to run on different platforms without significant modification.