1In the C++ language when building a class, header files (.h) must be separate from implementation files (.cpp)
True
False
False
2What statement is true about the C++ language?
It is compiled
None of these
It is interpreted
It was invented in 1968
It is compiled
3According to NUMA archetecture, all memory in a computer can be accessed and the retrieval times are constant.
True
False
False
4What kind of code do computers understand
Machine code
Bro code
Source code
Assembly code
Machine code
5What linux command is used to print "Hello World" on the terminal
type Hello World
print Hello World
push Hello World
echo Hello World
echo Hello World
6When building a class in C++, it is good practice to make the data members public so that other classes can quickly access them. This is what makes C++ a fast language.
True
False
False
7This program will compile and run just fine:
#include <iostream>
int main()
{
cout << "Hello World\n";
}
True
False
False (no namespace)
8What does Amdahl's law describe
The sequential work will limit the speedup due to parallelism!
Moore was an optimist
The computing power will double every 18 months
Programs can run faster if you use parallel processing
Programs can run faster if you use parallel processing
9What is the linux command to show the contents of a file?
cat
show
There are 2 correct answers listed
more
There are 2 correct answers listed
10How do you create an array of 20 integers called nums in C++?
int nums[20];
int nums = new int[20]
nums[20] <int>
integer nums[20];
int nums[20];