Computer Science 1 Final Exam

¡Supera tus tareas y exámenes ahora con Quizwiz!

The way you sit and type at a computer (posture) is called what?

Ergonomics

This can be added to a computer to enhance/upgrade graphics, sound, modems?

Expansion card

What are examples of Operating Systems?

Micosoft Windows, IOS, Andriod, Unix, Linux

What is a for loop that is inside another for loop is called?

Nested

What are examples of Data?

Picture, sound, video, text

What are the symbols <, >, <=, and >= used for?

conditions (if, while, do while)

We use cout and cin to output and input data to the what?

console

What is the value of x in this line? int x = 5 % 3

2

cout<<setprecision(3)<<fixed; How many decimals for a float or double variable would be displayed?

3

If these 3 lines were executed, what is output for len? string a="tommy"; int len = a.length(); cout<<len;

5

What is the character used at the end of executable statements in C++?

;

system("PAUSE"); and system("CLS"); use what library?

<cstdlib>

What is the library used to input/output data to and from a file? #include ____________.

<fstream>

Which of the following is NOT a valid comparison operator for use in an if() statement? <= >= = !=

=

What should be corrected in the following if statement? if ( x = 5 )

==

The INTERNET was originally called this back in 1969.

ARPANET

What is a step by step problem solving process in which a solution is arrived at in a finite amount of time?

Algorithm

In the line r=rand()%6; what does the %6 part represent?

Amount of numbers the random number is chosen from. (0 - 5)

The first virus that infected the boot sector of a floppy disk was named the __ virus?

Brain

What is the most common type of sorting used in arrays?

Bubble

What are the parts of the System Unit?

CPU, Motherboard, Memory Modules

CRT is a type of monitor. What does CRT stand for?

Cathode Ray Tube

What does CPU stand for?

Central Processing Unit

Who is the father of computers?

Charles Babbage

What can be used to keep track of how many times on operation is performed in a program?

Counters

Information is the organization of what?

Data

What does the line infile.open("myfile.txt"); do?

Identifies a file for data to be read from - opens the file

What does if (c != 6 ) mean?

If c is not equal to 6

What are some types of printers?

Inkjet, laser, thermal

What does IPOS stand for?

Input Process Output Store

What are examples of CPU types?

Intel, AMD, Motorola

What are types of storage devices?

Jump drive, floppy disks, hard drive

What are types of input devices?

Keyboard, mouse, scanner

What are each of the following representing: <iostream>, <iomanip>, <cstdlib>, and <cmath>?

Libraries

What are types of peripherals?

Printers, mouse, monitor, keyboard

What are challenges of facing a digital society today?

Privacy risks, copyright infringement, software piracy

What are the 2 types of keyboards?

QWERTY and DVORAK

What does RAM stand for?

Random Access Memory

Words built into the programming language are called keywords. What is another name for those keywords?

Reserve

What justification does the setw() function always output in?

Right

DO is often followed by or paired with what other keyword when creating loops?

While

The line string a = "tom"; generates an array simultaneously. What is the value stored in each variable generated?

a[0]='t' a[1]='o' a[2]='m'

What is used to enter a long list of data into a generated list of variables?

array

In the line int num[5]; what does the num part represent?

array/variable name

To end case 1: , what keyword must be before the next case?

break

The following line switch (choice) is associated with what other keywords?

case, break, default

Which variable type is more precise with decimals? double or float

double

When using if, else if, and else statements, which one does not have a condition?

else

What can be used to end a line or return in a program?

endl or "/n"

How much you know about a computer is called computer ________?

fluency

What keyword is used to input data from a file?

inFile

What types of values can the switch structure use in the control expression?

integers(int) and characters(char)

What are Cases most often used for in programs?

menus / making choices

What are the variable names of the elements of name[3]?

name[0], name[1], name[2]

What is wrong with the underlined part? temp=num1; num2=num1; num2=temp;

num1=num2;

What is wrong with the following line? int num[5]={10,25,12,6};

num[4] or {10, 25,12,6,3} not enough elements

How else can sum = sum + 1 be represented?

sum++ sum+=1

Which of the following is not a valid variable or identifier? grades average total points

total points

Lines within a loop should have which grouping symbols around them? ( ) { } [ ] //

{}

The line cout<<"Enter Grade<<endl; is missing what symbol?

"

What is the symbol for modulo?

%

To add numbers together we use what symbol ?

+

In order to increment, what is this line missing? for( i = 0; i <= 10; i )

++

What is the output of (5 * 2) / (( 6 % 2) - 1) ?

-10

What extension does the input file (data file) have to be when using <fstream>?

.txt

In the line r=rand()%5 what is the range of the random number generated?

0 - 4

What is the value of x in this line? int x = (11/2);

5

1 byte of information is equal to how many bits?

8

What is the value of pow(3,2)?

9


Conjuntos de estudio relacionados

Blood Bank Ch 3: Blood Banking Reagents Overview and Applications

View Set

Sustainability in Fashion Exam 2

View Set

Urdu words with "S" and "SH" sound

View Set

ACMA Case Management Certifican study help

View Set

Nclex review: tough practice Questions 1 Archer review

View Set

List of AI companies to memorize

View Set

Latin America & the Caribbean Exam

View Set

Chapter 25 The Global Crisis, 1921-1941

View Set

Parallel and Perpendicular Lines

View Set