Docsity

CSCI 1301 FINAL EXAM STUDY GUIDE, Exams of Social Sciences

Toggle sidebar
bg1
CSCI 1301 FINAL EXAM STUDY GUIDE
computer systems - Answers - consist of hardware and software
program - Answers - a set of instructions for the computer to carry out
software - Answers - all the different kinds of programs used to give instructions to the
computer
CPU (processor) - Answers - the device inside your computer that follows a program's
instructions
memory - Answers - holds data for the computer to process, and holds the result of the
computer's intermediate calculations
main memory (RAM) - Answers - volatile memory that holds the current program and
much of the data that the program is manipulating; 100,000x faster than auxiliary
memory;
auxiliary memory (secondary memory) - Answers - non-volatile memory that continues
to exist when the computer's power is off.
byte - Answers - the smallest addressable unit of memory; consists of 8 bits
memory location - Answers - the address of adjacent bytes
operating system - Answers - a supervisory program that oversees the entire operation
of the computer
high-level languages - Answers - must be translated into a language that the computer
hardware can understand; typically easy to understand and write; (ex: Java)
machine language - Answers - the language that the computer can directly understand
assembly language - Answers - a symbolic form of machine language that is easier for
people to read
low-level languages - Answers - only needs minor translation before it can be run on the
computer
compiler - Answers - a program that translates a high-level language to a low-level
language;
pf3
pf4
pf5

Partial preview of the text

Download CSCI 1301 FINAL EXAM STUDY GUIDE and more Exams Social Sciences in PDF only on Docsity!

CSCI 1301 FINAL EXAM STUDY GUIDE

computer systems - Answers - consist of hardware and software program - Answers - a set of instructions for the computer to carry out software - Answers - all the different kinds of programs used to give instructions to the computer CPU (processor) - Answers - the device inside your computer that follows a program's instructions memory - Answers - holds data for the computer to process, and holds the result of the computer's intermediate calculations main memory (RAM) - Answers - volatile memory that holds the current program and much of the data that the program is manipulating; 100,000x faster than auxiliary memory; auxiliary memory (secondary memory) - Answers - non-volatile memory that continues to exist when the computer's power is off. byte - Answers - the smallest addressable unit of memory; consists of 8 bits memory location - Answers - the address of adjacent bytes operating system - Answers - a supervisory program that oversees the entire operation of the computer high-level languages - Answers - must be translated into a language that the computer hardware can understand; typically easy to understand and write; (ex: Java) machine language - Answers - the language that the computer can directly understand assembly language - Answers - a symbolic form of machine language that is easier for people to read low-level languages - Answers - only needs minor translation before it can be run on the computer compiler - Answers - a program that translates a high-level language to a low-level language;

Java compiler - Answers - translates the Java language (high-level) into Java bytecode (low-level) Java bytecode - Answers - a 'machine language' for a hypothetical virtual computer known as the Java Virtual Machine Java Virtual Machine (JVM) - Answers - an interpreter that is responsible for translating Java bytecode into machine language and running the code class loader - Answers - connects bytecode of various classes applets - Answers - little applications meant to be sent to another location on the Internet and run there statements - Answers - instructions within a method that define a task and make up the body of the method variables - Answers - used in a program to store data such as numbers and letters; assigned a memory location data type - Answers - specifies a set of possible values and the operations defined for those values syntax - Answers - the grammatical rules for writing computer languages value - Answers - the number, letter, or other data item inside a variable variable declaration - Answers - includes a type name, & a variable name, and ends with a semicolon; primitive type - Answers - variables of this type are more simple than objects, and hold data of several specified types byte (type) - Answers - Primitive type: Integer

  • 128 to 127 [1 byte] short (type) - Answers - Primitive type: Integer
  • 32,768 to 32, [2 bytes] int (type) - Answers - Primitive type: Integer
  • 2,147,483,648 to 2,147,483,

second highest precedence (operators) - Answers - binary arithmetic operators (* / %) [precedence?] lowest precedence (operators) - Answers - binary arithmetic operators (+ - ) [precedence?] concatenation - Answers - an operation to combine strings; uses + index - Answers - the position in a string or array substring - Answers - a portion of a string escape characters - Answers - special characters indicated with a backslash (\n, \t) delimiters - Answers - specified characters (usually whitespace) that separate multiple inputs in a Scanner class boolean expression - Answers - an expression that is evaluated as either true or false conditional operator - Answers - ?; used with the ternary operator : to assign a value; can replace an if-else statment short-circuit evaluation - Answers - an evaluation made when Java only evaluates the beginning of an expression to determine if it is true or false. Use & and | instead of && and || to avoid loop - Answers - a portion of a program that repeats a group of statements iteration - Answers - one repetition of the loop body while loop - Answers - a type of loop that repeats its body while the controlling expression is true (can preform 0 iterations) do-while loop - Answers - a type of loop that repeats its body the controlling expression is true (body is always executed at least once) infinite loop - Answers - a loop that iterates its body without ever ending for loop - Answers - a loop that uses 3 expressions in its implementation to iterate the loop a specified number of times; used to count up or down for each loop - Answers - a for loop that uses : to iterate over each value in an array local variable - Answers - a variable that only has meaning inside the body it is declared in

scope - Answers - the portion of a program in which a variable has meaning sentinel value - Answers - a value that a user can input to signal the end of a loop/input object - Answers - an instance of a class class - Answers - specifies the attributes/data (instance variables) that objects have UML Class Diagram - Answers - a diagram designed to help outline a class instance variables - Answers - the data items that belong to an object; public - Answers - an access modifier that places no restrictions on how instance variables are used methods - Answers - invoked or called to perform actions on an object; some return a value and some are void void methods - Answers - methods that perform some action other than returning a value return; - Answers - the line used in a non-void method to give back a value where it was called; ends a method's execution this - Answers - the keyword used as a name for the receiving object in a method block - Answers - a compound statement that declares a local variable formal parameters - Answers - in a method, these parameters represent the actual argument in the method definition actual parameters - Answers - in a method, these parameters represent the argument, or the value that is plugged into the method byte, short, int, long, float, double - Answers - the order that automatic typecasting occurs in: information hiding (abstraction) - Answers - designing a method so that it can be used without much understanding; separating the why from the how precondition statement - Answers - a comment that states the conditions that must be true before a method is invoked postcondition statement - Answers - a comment that describes all the effects produced by a method invocation

unboxing - Answers - the automatic conversion of an object of a wrapper class to a value of its associated primitive type; int i = n; array - Answers - a collection of items of the same type ragged array - Answers - a 2D array that has a different number of columns in each row