Important Introduction to Programming Short Questions
Chapter: 2
Question 1:
What is the difference between an interpreter and a compiler?
Answer:
Interpreter translates line by line; compiler translates the whole program at once.
Chapter: 2
Question 2:
What is the benefit of using an interpreter?
Answer:
Detects errors as you go along.
Chapter: 2
Question 3:
What is a drawback of using an interpreter?
Answer:
Program executes slowly.
Chapter: 2
Question 4:
What does a compiler require to produce an executable code?
Answer:
Syntactically correct program.
Chapter: 2
Question 5:
What is a Debugger used for?
Answer:
To correct logical errors in a program.
Chapter: 2
Question 6:
What is the purpose of a Linker?
Answer:
Includes all routines or functions used in a program to make standalone executable code.
Chapter: 2
Question 7:
What does a Loader do?
Answer:
Loads the program into memory and starts its execution.
Chapter: 2
Question 8:
What is the starting point of every C program?
Answer:
Main function.
Chapter: 2
Question 9:
Which software category do Linker and Loader belong to?
Answer:
System Software.
Chapter: 2
Question 10:
What is the function of the CPU during program execution?
Answer:
Takes each instruction and executes it, possibly storing new data values.