principles of programming Flashcards

1
Q

What is the main difference between high- and low-level languages

A

High-level languages enable the user to program even without the knowledge about the hardware. Low-level languages require the user to have knowledge about the hardware architecture and its instruction set

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

What are the advantages of programming in high-level languages

A

Codes are understandable and easy to write. A code can be used on different systems. Written in shorter time

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

What are the advantages of programming in low-level languages

A

Low-level language programs do not take up much space in primary memory and performs its task quickly

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

Why is machine code non-understandable

A

Because machine code is written in binary or hexadecimal form

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

Which of the translated programs work independently without its translators

A

Compiled and assembled programs

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

How is output of an interpreter different from that of the compiler and assembler

A

No executable file is produced by an interpreter. Whereas a compiler and assembler produce an executable file

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

How is the input of an assembler different from that of a compiler and interpreter

A

An assembler translates a low-level language program. Whereas compilers and interpreters work with high-level language programs

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

What is a logic error

A

A program is said to contain logic errors, if it produces incorrect or unexpected results

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

What does an IDE consist

A

It consists of an editor with an interpreter and/or compiler and debugging tools

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

What is the advantage of using an IDE

A

IDE improves the speed of program development

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

What is a run time environment

A

A run time environment allows the user to run a program on a platform that is different from the one in which it was created

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