Chap 1: What is a program made of?
Quiz
•
Computers
•
University
•
Hard
Hana Samsudin
Used 3+ times
FREE Resource
Enhance your content in a minute
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
C++ program requires compiler, interpreter and linker in order to make the program run.
True
False
Answer explanation
C++ requires compiler and linker. Interpreter is used in language like Python, Javascript and Php.
Compiler translates code from a high-level programming language (like C++, Java) into machine readable code.
Interpreters run through a program line by line and execute each command.
Generally, high level language requires more memory.
2.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Compiler and interpreter's goals are different.
True
False
Answer explanation
They are both to convert human written code into computer readable code.
3.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
C++ is a compiled language.
True
False
Answer explanation
C++ is a compiled language. Python is an interpreted language. What can you tell generally the difference in the environment?
4.
MULTIPLE SELECT QUESTION
45 sec • 3 pts
What pre-processor is for?
To prepare the compiler to process the code which has been written
To convert source program/code into machine language
To convert directive lines in the source code file to take specific actions
To perform preliminary operations on C++ files before they are passed to the compiler.
Answer explanation
The preprocessor is a program that is invoked by the compiler to process code before compilation.
The preprocessor commands for that program, known as directives, are lines of the source file beginning with the character # , which distinguishes them from lines of program text.
5.
MULTIPLE SELECT QUESTION
45 sec • 3 pts
Linker is necessary for a compiled language to...
Connect the hardware with the instruction specified in the program/code
Use the machine instruction to execute the command given
Use the program written to execute the command in the program
Change back the machine instruction into human readable language
Answer explanation
"Use the program written to execute the command in the program" is for interpreter.
"Change back the machine instruction into human readable language" is for compiler and interpreter.
6.
MULTIPLE SELECT QUESTION
45 sec • 3 pts
In every programming language, the following are elements one would have:
Keywords
Programmer-defined Identifiers
Operators
Punctuation
Syntax
Answer explanation
These are the basic elements of any programming languages.
7.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Keywords are also known as reserve word.
True
False
Answer explanation
Another name for keywords is reserve word. These word has special meaning in the language which it cannot be used as a variable or other non-related purposes.
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
11 questions
Computer Science (1-9) - Identifying & Preventing Threats
Quiz
•
University
18 questions
Quiz on Misinformation and Bias
Quiz
•
10th Grade - University
18 questions
videojuegos generales
Quiz
•
University
14 questions
IOTA : Web Development Bootcamp Quiz 2
Quiz
•
University
10 questions
BOOLEAN CLUB QUIZ 1
Quiz
•
University
10 questions
Concept of Computer Network
Quiz
•
University
16 questions
Algo Quiz
Quiz
•
University
10 questions
Server Administration- Quiz 1
Quiz
•
12th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Computers
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
