Docsity

Problem Set 1 | IT 177.00 - Problem Solving for Information Technology, Quizzes of Information Technology

Toggle sidebar
bg1
TERM 1
What is the hardware part of a computer
system and list the major hardware
components of a typical computer system
DEFINITION 1
The Physical ComponentsSPUMain memory(ram)Secondary
storage devices(hard drive, CD,DVD,...)Input
Devices(keyboard,mouse.scanner..)Output devices(monitors,
printers...)
TERM 2
What are the two general categories of
software
DEFINITION 2
operating systemapplication software
TERM 3
What is the definition of a computer program
DEFINITION 3
Set of instructions that enable the computer to solve a
problem or perform a task
TERM 4
What is an algorithm
DEFINITION 4
set of well defined steps for performing a task or solving a
problemsequentially ordered
TERM 5
In what language does a computers CPU
process instructions
DEFINITION 5
machine language
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17

Partial preview of the text

Download Problem Set 1 | IT 177.00 - Problem Solving for Information Technology and more Quizzes Information Technology in PDF only on Docsity!

What is the hardware part of a computer

system and list the major hardware

components of a typical computer system

The Physical ComponentsSPUMain memory(ram)Secondary

storage devices(hard drive, CD,DVD,...)Input

Devices(keyboard,mouse.scanner..)Output devices(monitors,

printers...)

TERM 2

What are the two general categories of

software

DEFINITION 2

operating systemapplication software

TERM 3

What is the definition of a computer program

DEFINITION 3

Set of instructions that enable the computer to solve a

problem or perform a task

TERM 4

What is an algorithm

DEFINITION 4

set of well defined steps for performing a task or solving a

problemsequentially ordered

TERM 5

In what language does a computers CPU

process instructions

DEFINITION 5

machine language

Do the CPUs of all computers use the same

language

no

TERM 7

What would you see if you looked at a

program in mashing language

DEFINITION 7

0s and 1s

TERM 8

Common elements of a programming

language

DEFINITION 8

key words(reaserved

words)operatorsPunctuationProgrammer defined

namesSyntax rules

TERM 9

The java programming statements written by

the programmer in a text editor are called__

and the file when saved has what extension

DEFINITION 9

sourcecode.java

TERM 10

A java compiler translates Java source code

into ___ and the file created has what

extension

DEFINITION 10

byte code.class

OOP is an acronym for

object oriented programming

TERM 17

What type of programming separates the

data from the behavior (programming

statements that perform a specific task)?

DEFINITION 17

procedural programming

TERM 18

What type of programming combines the data

and behavior?

DEFINITION 18

object oriented programming

TERM 19

What terms are used in OOP for a. data? b.

behavior?

DEFINITION 19

attributmethod

TERM 20

Combining data and behavior in the same

entity is called ?

DEFINITION 20

encapsulation

What is the difference between a class and an

object?

A class is a collection of programming statements that specify the attributes and the methods that a particular type of object may have. "blueprint" that objects may be created from. description of an object. An object is an instance of a class created using a new operator. allocated in memory From wiki A class is basically a definition, and contains the object's code. An object is an instance of a class. For instance, there is one java.lang.String class, but you can instantiate any number of distinct java.lang.String objects (instances). While a class defines the instance variables that an object has, the instantiated object itself actually contains those variables. So to put it simply: An object is an instance of a class. TERM 22

An object created from a class is also called

an ? of the class.

DEFINITION 22

instance

TERM 23

How many objects of a class can be created

in memory?

DEFINITION 23

as many as needed

TERM 24

What java keyword is used to create an object

of a class

DEFINITION 24

new

TERM 25

The fundamental means of communication

between objects is called the ?. a. This

term refers to the abstraction that an entity

provides of itself to the outside. b. The

connection between two points, where the

communication occurs.

DEFINITION 25

interface

Integration Testing

Verify the interfaces between components.

TERM 32

System

testing

DEFINITION 32

Entire system is tested determined by the requirements.

TERM 33

Regression Testing

DEFINITION 33

Focuses on finding defects after a major code change has

occurred.

TERM 34

Why create a package instead of just using

the default?

DEFINITION 34

used to organize your files

TERM 35

38.Given the following classes and the Java

API library packages where they are stored,

write the import statements. a.

DecimalFormat in java.text b. Scanner in

java.util

DEFINITION 35

import java.text.DecimalFormat;import java.util.Scanner;

What is the purpose of the import statement?

To tell the compiler where to find code that is stored in other

packages so the class can be referenced without using the

fully qualified name.

TERM 37

Write the class header statement.

DEFINITION 37

public class AcreCalculator{

TERM 38

Write the method header

DEFINITION 38

public static void main(String[] args){

TERM 39

Declare and initialize (default value for data

type) two variables: a. b. to hold the square

feet entered as a whole number to hold the

number of acres which must store decimal

places

DEFINITION 39

int square Feet = 0;double acres = 0;

TERM 40

Write the declaration for the constant to hold

the number of feet per acre.

DEFINITION 40

final int FEET_PER_ACRE = 43560:

hat special consideration do you need to

consider when reading a String after reading

an int value?

An extra statement needs to be used to read the '\n' left

after the int value. keyboard.nextLine( );

TERM 47

Write the statement to calculate the number

of acres from the input number of square

feet.

DEFINITION 47

acres = (double) squareFeet / FEET_PER_ACRE;

TERM 48

Write the output statement to print the

square feet and acres with appropriate labels.

DEFINITION 48

System.out.println(pattern0comma000.format(squareFeet) +

" square feet = " + pattern0dot0.format(acres) + " acres");

TERM 49

Give an example of when a String needs to be

converted to a numeric value and describe

why this needs to be done.

DEFINITION 49

When reading input using an input dialog box, all values

come in as strings. If the value is numeric and needs to be

used in arithmetic calculations, it must be converted to a

numeric data type.

TERM 50

Give an example of when a value needs to be

typecast and why.

DEFINITION 50

A typecase often needs to be used when the result of integer

division needs to be a double value.

Write an assignment statement that

typecasts a double variable balance to an

integer and stores it in an integer variable

simpleBalance.

simpleBalance = (int) balance;

TERM 52

Difference main memory and secondary

storage

DEFINITION 52

main memory is ram hold data of processes running

TERM 53

What type of memory is

volatile

DEFINITION 53

Ram

TERM 54

Difference between operating software and

application software

DEFINITION 54

Operating is for operations for the computer

TERM 55

why must programs written in high language

be translated into machine language before

they can be run

DEFINITION 55

CPU can only read machine language

application

stand alone program that runs on your computer

TERM 62

applet

DEFINITION 62

small program

TERM 63

why are java applets safe to download and

execute

DEFINITION 63

browser executes them in a restricted enviorment

TERM 64

what must a computer have in order to

execute a java program

DEFINITION 64

javadevelopmentkit

TERM 65

difference between machine language and

byte code

DEFINITION 65

machine cpubyte jvm

why does byte code make java a portable

language

runs in different operating systems

TERM 67

is encapsulation a characteristic of procedural

or object oriented programing

DEFINITION 67

object oriented

TERM 68

why should an object hide its data

DEFINITION 68

protect from accidental coruption

TERM 69

what part of an object forms an interface

through which outside code may access the

objects data

DEFINITION 69

object method forms an interface

TERM 70

component reuseability

DEFINITION 70

ability to reuse several different programs

case sensitive why is this important

uppercase letters are different than lowecase counter parts

TERM 77

print and println methods are realted to the

system class and the out object

DEFINITION 77

the print and print ln objects are methods of the out

objectout object is a meber of the sytem classsystem class is

part of java API

TERM 78

what does a variable declaration tell the java

compiler about the variable

DEFINITION 78

variale name and the type of data it will hold

TERM 79

why are variable names like x not

recommended

DEFINITION 79

they should give a name for what they are used for

TERM 80

What must be considered when deciding on

data types for a varibale

DEFINITION 80

largest and smallet values it will hold

// comments vs /* comments

// single line/* multiline

TERM 82

what is programing style

DEFINITION 82

refers to the way the programmer uses indents spaces blank

lines and punctuation

TERM 83

a collection of programing statements that

specify the field and methods that a

particular type of object may have

DEFINITION 83

class

TERM 84

a class is analogous to a

DEFINITION 84

cookie cutter

TERM 85

an object is a

DEFINITION 85

instance

when the value of an item is dependent on

other data, and that item isnt updated when

other data changes the value becomes

stale

TERM 92

method that is automatically called when an

instance of a class is created

DEFINITION 92

constructor

TERM 93

when a local variable has the same name as a

field , the local variables name does this to

the fields name

DEFINITION 93

shadows

TERM 94

if you do not write a constructor for a class

this is automatically provided for the class

DEFINITION 94

default constructor

TERM 95

a classes responsabilities are

DEFINITION 95

things the class knowsactions the class preforms

occurence of a string literal in a java program

causes a string object to be created in

memory, intialized with a string literal

ture

TERM 97

when passing an argument to a method the

arguments data type must be compatable

with parameter variables data type

DEFINITION 97

true

TERM 98

when passing multiple arguments to a

method the order isnt important

DEFINITION 98

false

TERM 99

each instance of class has its own set of

instance fields

DEFINITION 99

true

TERM 100

when you write a constructor for a class it still

has the default constructor that java provides

DEFINITION 100

false