quiz1 325

10 flashcardsby tekshteint
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
In the C++ language when building a class, header files (.h) must be separate from implementation files (.cpp)

True
False
False
2
What statement is true about the C++ language?

It is compiled
None of these
It is interpreted
It was invented in 1968
It is compiled
3
According to NUMA archetecture, all memory in a computer can be accessed and the retrieval times are constant.

True
False
False
4
What kind of code do computers understand

Machine code
Bro code
Source code
Assembly code
Machine code
5
What 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
6
When 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
7
This program will compile and run just fine:

#include <iostream>

int main()
{
cout << "Hello World\n";
}

True
False
False (no namespace)
8
What 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
9
What 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
10
How 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];
Study all 10 cards for free