• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/74

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

74 Cards in this Set

  • Front
  • Back
What is the symbol for modulus division?
percent symbol (%)
In general, are C++ statements case sensitive?
YES
How is a c++ statement terminated?
semicolon (;)
What is used to write a multiline comment?
/* TEXT */
Can a comment be written at the beginning or end of a program?
YES
Can comment statements be nested?
NO
/*This is /*not*/ allowed*/
What are the 2 ways to create a blank line?
<<endl
"\n"
T/F: The first character of a variable can be numeric
FALSE
7do_not_do_this
T/F: The '_' character can be used at the beginning or end of a variable name
TRUE
_this_works_
When variables are concerned, does ABC = abc?
NO
Variables are case sensitive
T/F: You can print more than one variable with a single 'cout' statement
TRUE
cout<<v1<<v2;
T/F: The 'setprecision()' manipulator sets the amount of digits printed after the decimalplace only
TRUE
x=1.112233
cout<<setprecision(3)<<x;
OUTPUT = 1.112
T/F: When assigning a value to 'char', it must be enclosed in single quotes
TRUE
char='g'
What happens when you have code that says:
char c1=63;
cout<<c1;
OUTPUT: ?
The output is ? instead of 63 because it doesn't have single quotes. 63 is the ASCII code for ?
This man invented the punch card which saved the day for the 1890 US Census
Herman Hollerith
Herman Hollerith is the inventor of the _____ _____
punch card
The statement 'x+=2' will do what?
it will add 2 to the value of x
Two ways to enter comments
//TEXT
/*TEXT*/
In c++, if there is a statement that says 'a=13/2' the output would be...
6
13/2 = 6.5, but c++only outputs the first digit
In c++, if there is a statement that says 'a=13%2' the output would be...
1
The % symbol calculates the remainder of the equation
Name 3 legitimate types of variables in c++
float
double
int
char
Process of converting a c++ program from the lines we write down to machine language is called
Compilation
What are the 3 types of images used on the Internet today?
.PNG
.JPEG
.GIF
Technique used for error handling when sending a byte of data across communication lines
Parity
Who was the world's first programmer?
Ada Lovelace
First computing device that consisted of a bunch of beads strung on wires and was first used in Asia
Abucus
What does ASCII stand for?
American Standard Code
for Information Interchange
Name 2 versions of real number variables in order from smaller to larger
double
long double
The term "bit" comes from what 2 words
BInary digIT
Four operations to measure a hard disk's performance
Transfer rate
Access time
Seek time
Latency time
What is the output for the following code:
if (8/3==2)
cout<<"1";
else
cout<<"2";
OUTPUT: 1
8/3 = 2 r 1, but c++only reads the 2
What are the 2 bool (type Boolean) literals?
True and False
The 6 Relational Operators are
< - less than
<= - less than or equal to
> - greater than
>= - greater than or equal to
== - equal to
!= - not equal to
The 3 Logical Operators are
&& - and
|| - or
! - not
2 major types of statements for making decisions
if
switch/case
3 types of statements to handle looping or repetition
while
do-while
for
T/F: You use the 'cout' object to write output to an external file
FALSE
What must be used in order to execute more than one statement in an 'if' statement
Curly Braces {}
if (x<=0)
{a=b;
c=d;}
T/F: You must create a link between an external disk file and an ifstream object before you can read your input data
TRUE
Who is credited with the 'stored program' concept?
John von Neumann
John von Neumann is credited with the _____ _____ concept
Stored Program
1 Kbps = ____ kbps?
1000 bps
1 Mbps = ____ bps
1 million bps
1 Gbps = ____ bps
1 billion bps
What symbol do we use for the ternary operator?
Question mark (?)
If a machine language is designed with an op-code field of 4 bits, how many instruction types can it contain?
16
Can parallel or serial transmitting do more bits at a time?
Parallel
The control unit keeps repeating 'fetch, decode, and execute' which is called the...
Machine Cycle
The system clock speed is measured in what?
Hertz (Hz)
What are the 2 parts that the CPU consists of?
ALU
Control Unit
Example of very fast storage or memory inside the CPU...
Register/cache
A c++ array is passed to a function by...
Reference
To pass to the location or address of the actual parameters so changes made are made to that actual parameter
Passing by Reference
When actual values are passed to formal parameters by making a copy of the date
Passing by Value
Name the 4 network physical configurations
Ring
Bus
Star
Irregular
A network or internet controlled by one organization
Domain
An IP address is a ___ bit identifier for a machine
32
Email stands for
Electronic Mail
The language used on the Internet most is
HTML
URL stands for
Uniform Resource Locator
T/F: When a return statement is used, it must be the last line in a function.
FALSE
What function is used to generate random numbers?
rand()
4 Layers of Internet software
Application
Transport
Network
Link
Large software package that controls the overall activities of a computer is a(n)
Operating System
Process of collecting jobs/data and executing them all at one time rather than in real-time
Batch Processing
When CPU is rapidly transferring its attention from one user to another, making them feel as though each person has the undivided attention of the computer
Multitasking
2 broad categories of software
Application
System
What does GUI stand for?
Graphical User Interface
Linux is a free version of what operating system?
Unix
Nonproprietary software is software which is _____, it can be modified by anyone.
Open
'Pretend' memory created by swapping part of the program out to disk
Virtual Memory
Which is volatile? RAM or ROM
RAM
Part of the kernal of the operating system, switches attention of CPU from one process to another
Dispatcher
2 ways to fix deadlock
Deadlock Avoidance
Deadlock Detection