Professional Documents
Culture Documents
Test 1:
Define the following:
1. Computer Programming — a set of instructions that tells the computer what to execute.
2. Programming Language — a language used for computers and machines could understand.
3. Low-level Language — programmer friendly and readable.
4. High-level Language — has little to no abstraction, machine friendly.
5. Programming Paradigm —an approach to solve problems using programming languages.
Test 2:
1. What are the four-core concept of OOP?
a. Abstraction
b. Encapsulation
c. Inheritance
d. Polymorphism.
3. C++ programming language was first designed as an extension of what programming language?
a. C language
Test 3:
1. Using C++ code syntax,
a. create a variable called myAge of type int and assign 15 as its value,
i. int myAge = 15;
b. create a variable called myName of type string and assign any string value to it,
i. string myName = “Rucci”;
c. display the value of myName and myAge variables
3. Running the following code will the display the pattern shown in the image on the right.