principles of programming Flashcards
What is the main difference between high- and low-level languages
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
What are the advantages of programming in high-level languages
Codes are understandable and easy to write. A code can be used on different systems. Written in shorter time
What are the advantages of programming in low-level languages
Low-level language programs do not take up much space in primary memory and performs its task quickly
Why is machine code non-understandable
Because machine code is written in binary or hexadecimal form
Which of the translated programs work independently without its translators
Compiled and assembled programs
How is output of an interpreter different from that of the compiler and assembler
No executable file is produced by an interpreter. Whereas a compiler and assembler produce an executable file
How is the input of an assembler different from that of a compiler and interpreter
An assembler translates a low-level language program. Whereas compilers and interpreters work with high-level language programs
What is a logic error
A program is said to contain logic errors, if it produces incorrect or unexpected results
What does an IDE consist
It consists of an editor with an interpreter and/or compiler and debugging tools
What is the advantage of using an IDE
IDE improves the speed of program development
What is a run time environment
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