Natural Language Vs Programming Language Flashcards

1
Q

What is the main difference between natural language and programming language?

A

Natural language is used for communication between humans, while programming language is used to communicate instructions to computers.

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

What type of language uses syntax and rules to convey instructions to computers?

A

Programming language

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

Natural language is used for ________ communication.

A

human

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

Which language is designed for specific tasks and functions

A

Programming language

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

True or False: Natural language can be understood by computers without translation.

A

False

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

What type of language is used for everyday communication between individuals?

A

Natural language

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

What is the primary purpose of programming language?

A

To provide instructions for computers to execute tasks

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

Fill in the blank: Programming languages require precise ________ to function correctly.

A

syntax

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

Which language is more flexible in terms of interpretation and context: natural language or programming language?

A

Natural language

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

True or False: Natural language is inherently logical and structured.

A

False

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

What is the role of compilers and interpreters in programming languages?

A

They translate human-readable code into machine-readable code for execution

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

Programming languages are used to create ________ that can be executed by computers.

A

algorithms

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

Which type of language is more prone to ambiguity and interpretation errors: natural language or programming language?

A

Natural language

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

True or False: Programming languages are universal and can be understood by any computer system.

A

False

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

What is the primary difference in syntax between natural language and programming language?

A

Programming languages have strict syntax rules, while natural languages are more flexible

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

Which type of language is more precise and unambiguous in conveying instructions: natural language or programming language?

A

Programming language

17
Q

True or False: Natural language does not require translation to be understood by computers.

A

False

18
Q

What is the key advantage of natural language over programming language in terms of communication?

A

Natural language is more intuitive and easier for humans to understand

19
Q

Programming languages are designed to be ________ and unambiguous.

A

precise

20
Q

Which language is more context-dependent and open to interpretation

A

Natural language

21
Q

Refers to the set of valid words or tokens in a programming language, like keywords, variables, operators, and symbols.

A

Lexicon

22
Q

The formal rules that define how the lexicon (tokens) can be arranged to form valid code or statements. errors occur when the rules are violated.

A

Syntax

23
Q

focuses on the meaning of the code and what the code does when it runs. Even if code is valid, errors arise if the logic or operations don’t make sense

A

Semantics

24
Q

A complete set of well-known commands is called

A

instruction list (IL)
commonly known as machine language

25
Q

What is the purpose of high-level programming languages?

A

High-level programming languages serve as an intermediate bridge between human language and computer language, enabling humans and computers to work together effectively.

26
Q

What is the feature of high-level programming languages that allows programs to run on different computers

A

Portability