Set: Exam 1 - CS MC

Familiarize

Learn

Test

Play Scatter

Play Space Race

Combine with other sets Login to add to Favorites
Print: Term List | Flashcards Editing not allowed
Export Deleting not allowed

Share these flash cards

With group: None
HTML link to set: Tiny link:
Share on Facebook Share on MySpace

All 267 terms

TermDefinition
Computer HardwareAnything that is part of a computer system and is tangible.
Computer SoftwareAnything that is part of a computer system and is intangible.
Main components of a computer systemCentral Processing Unit (CPU) Input/Output Devices (I/O) Main Memory Secondary Memory
Function of the CPUExecute individual commands of a program
Function of Input Output DevicesAllows a human being to interact with the computer
Example of Input Output DevicesKeyboard, Mouse, Monitor, Printer, Microphone, Speakers
Function of Main MemoryTo hold the software in memory while the CPU is processing it
Function of Floppy DiskPortable secondary memory
Relationship Between Main Memory, Secondary Memory, and the CPUSoftware stored in the Secondary Memory is loaded into the Main Memory, and is then executed by the CPU, until all the individual commands have been completed
Main Distinction of SoftwareSystem software and application software
Function of the Operating SystemProvide a user interface which allows user to interact with the machine; manages computer resources such as main memory and CPU; determines when programs are allowed to run, where they are loaded into memory, and how hardware devices communicate; it generally is supposed to make the computer easy to use and make it run efficiently
Examples of Operating SystemsWindows XP, Windows Vista, Linux, Unix, OS X
Open Source SoftwareSoftware which has many developers contributing to it and which has its code freely available
Application softwarePractical applications like Quicken, MS Office, Instant Messenger. Generally, all software besides the system software is this.
GUIGraphical User Interface
Graphical User InterfaceThe user interface for most modern operating systems and applications
Components of a GUIWindows, icons, pull-down menus, scroll bars, buttons
Alias for GUIPoint and click interface
InterfaceThis is the only part of a piece of software which the user interacts with, hence this essentially is the software for the user. This is part of the software the user sees.
Manner in which Digital Computers Store InformationAll information is stored as numbers. Images, audio, text, color, and computer programs are all stored in memory as numbers.
Analog InformationContinuous and in direct proportion to the source of the information.
Examples of Analog InformationMercury thermometer, stereo amplifier.
Techniques for storing and managing informationDigital and analog
Digital InformationBreaks source information down into discrete pieces and represents each of the pieces as numbers.
Sampling RateThe number of digital information measurements per second, or period of time.
Base value of a number systemIndicates how many digits we have to work with and the place value of each digit in a number.
The base value in a binary system2
The base value in a decimal system10
A single binary digitBit
Binary computer systemsMore convenient and inexpensive given our hardware. Other base value computer systems have also been invented.
Magnetic materialsAre effective for storing digital information as they can be polarized to one extreme or another, but intermediate values are hard to distinguish.
Demagnetized areas representA binary 0
Binary values in electric circuitsHigh volatage (+5 volts) represents a binary 1, low voltage (-5 volts) represents a binary 0
Signal DegradationOccurs as information is passed down a wire. This occurs for both digital and analog signal, but the information loss is less severe in digital storage.
Bit permutations2^N permutations for every bit. Each bit permutation represents a possible entity which can be represented by one of the 2^N combinations of 1s and 0s, where N represents the total number of bits.
Computer ArchitectureDescribes how the components of a computer are put together
BusA wire on which computer information travels
PeripheralsHardware components of a computer system other than the CPU and the Main Memory. It includes hard disk, monitor, and floppy disks, secondary memory and input/output devices.
ControllersAid in the transmission and translation of peripherals information on the computer system.
Data transfer devicesAllow information to be sent and received between computers
Example of Data Transfer DeviceModem (modulator demodulator), transfers information over the telephone line
Examples of uncommon IO DevicesBar code readers, joy sticks, microphones, virtual reality devices, scanners, plotters, goggles
Examples of Common I/O devicesMonitors, printers, keyboard, mouse, speakers
PixelPicture element. They are arranged in a cartesian grid, that differs from the traditional grid in that the (0,0) position is on the top left of the window/screen.
Components of Main MemoryMemory location and memory address
Memory allocated to each memory location8 bits or 1 byte
Multiple consecutive memory locations usedIn the case when you have a large unit of memory needed to store the object in question
Storage capacity of memory is measured inThe total number of bytes. You will see Kilobytes, Megabytes, Gigabytes, and Terabytes.
RAM is a form ofMain Memory
Main Memory isVolatile or dependent on electrical power
Hard Disk componentsMagnetic disks and read write heads
Alias for Random AccessDirect Access
Random AccessThe memory access mechanism which allows immediate access to various positions in memory.
Contrasted Access with Random AccessSequential Access
Memory devices which are sequential accessTapes that need to be fast forwarded and rewound to access various memory locations on the device(like a VHS (video) tape)
ROM stands forRead Only Memory
Example of ROMCD-Rs
Is RAM ROM?No, RAM is Read Write memory.
ROM memoryCannot be altered once information has been written to it.
Common uses of ROM devicesEmbedded into the circuit board to provide preliminary instructions needed when the computer is turned on.
Base value for CD ROMs and CD RwsBinary
A binary 1 on a disk is represented byA microscopic pit pressed into the disc, which is read by a reflective laser.
How the speed of a disk drive is measuredIn multiples of x or 153,600 bytes of data read per second.
General rule for how storage capacity growsStorage capacity doubles every 18 months. This may change as the growth approaches physical limitations.
Components of CPUControl Unit, Registers, Arithmetic/Logic Unit
Function of the CPU componentsControl Unit – coordinates the processing steps; Registers – provide a small amount of storage space in the CPU itself; Arithmetic/Logic Unit – performs calculations and makes decisions
Control Unit CoordinatesThe information in memory and the information in the registers. It also coordinates the calculations performed by the arithmetic/logic unit on the data stored in the registers.
Various Types of RegistersInstruction register, program counter
Characteristic of von Neumann architectureStoring both program instructions as well as data on main memory, as well as the Fetch-Decode-Execute cycle.
The component the CPU is constructed onMicroprocessor
System clockGenerates an electronic pulse at regular intervals, which synchronizes the events of the CPU.
Clock speedThe rate at which the electronic pulses occur, coordinated by the System clock.
The speed of the system clock is a rough measure ofHow fast the CPU executes instructions.
Components of a Network2 or more computers and a cable (or wifi) connection between them by which they can exchange information
File serverA computer in a network that has a lot of secondary memory and can hold programs and data which are used by more than one computer on the network
Point to point connectionNetwork model in which each computer on a network is connected to every other computer on the network. If there are 5 computers on this kind of network, each computer will have to have 4 cables running from its base unit to the other 4 computers on the network.
Each computer on a network has its ownNetwork address which uniquely identifies it
Benefits of a shared communication lineEasy to add computers to the network without modifying the network architecture.
Cons of a shared communication lineIntroduction of delays in communicating on the network. This means that the computers on the network have to take turns sending messages to each other.
Network packetsHow information is broken down in a network, to allow information to travel between nodes simultaneously.
LANs and WANsLANs connect many computer nodes. WANs connect many LANs.
LAN stands forLocal Area Network
WAN stands forWide Area Network
The type of network the internet isWide Area Network
ProtocolA rulebook that governs how two things communicate
The Protocols that govern the movement of messages on the internetTCP/IP or Transmission Control Protocol/Internet Protocol
Analogy for Packets on a Single Transmission LineA shared conveyor belt that users of it must share. Each user puts one item on at a time, rather than his entire collection.
Function of Internet Protocol (IP)Defines how information is formatted and transferred from the source to the destination.
Function of Transmission Control Protocol softwareManages problems such as packets of information arriving out of order and packets getting lost, which can happen if too much information converges at the destination at once.
Every computer on the Internet has a uniqueInternet Protocol Address (IP Address)
The Internet Protocol Address is often substituted by anInternet address, such as www.google.com/mail
The google.com portion of an Internet Address is referred to as theDomain name, which indicated the organization to which the computer at that internet address is being hosted
The mail.google.com portion of the Internet Address is referred to as theSubdomain, which is used to uniquely identify a network or computer within the organization which hosts the main domain name
The portion of an Internet Address that is underlined here: http://www.google.com/mail/Top Level Domain, this usually defines the type of organization to which the computer or network belongs. Com is used for commercial computers, edu is used for educational computers, org is sometimes used for non-profits, and most of them are intuitive
When an Internet Address is referenced this software translates the words to the IP address to make the computers address more machine-manageableDomain Name System
Every computer on the internet operates one of these, which maintains a list of all computers at that organization and their unique IP addressesDomain server, this works sort of like a telephone directory/book, in which you give the system a name, and the book returns a number/address
Software that makes information sharing across a network easyWorld Wide Web
The web is based on this technology which is best exemplified byHypertext and hypermedia, the best example of the original concept in action is at wikipedia.com, in which the flow of ideas is NOT linear at all, and the reader can follow whatever path of knowledge is of interest to him. Our textbook for example, is highly NOT in the spirit of the web.
This is how the WWW and the Internet are differentThe Internet is a network of networks which individually are a network of computers. The Internet is essentially the hardware of the Global Information System. The Web is the software component of the GIS, which allows easy transfer of information. It is important to note that the web could exist without the Internet, just simply operating on a LAN or even a single computer displaying HTML documents.
This was the first GUI web browserMosaic and it came out in 1993, the people behind Mosaic, eventually went on to develop netscape.
This computer is used to provide access to web documents from web browsersWeb server
This formatting is used for most documents on the webHTML
This is the protocol for most documents on the webHTTP (HyperText Transfer Protocol)
The wwww.google.com indicateswe are dealing with a web server computer
URL stands forUniform Resource Locator, which is used to specify particular documents and information for the web browser to display
Programming LanguageThis is the language in which programs are written. It uses specific words and symbols to express the problem solution, which makes computers useful. It defines a set of rules that determine exactly how a programmer can combine the words and symbols of the language into programming statements, which are the instructions which are carried out when the program is executed
Programming StatementsThe instructions that are carried out when the program is executed.
This text uses Java as a means to what ends?Learning the underlying computer science/software development concepts. Along the way you will pick up some Java as well.
This person was the inventor behind JavaJames Gosling at Sun Microsystems
Java was brought to market this year1995
These are the three major groups of the Java 2 PlatformStandard Edition (J2SE), Enterprise Edition (J2EE), Micro Edition (J2ME)
DeprecatedThese are elements of the programming language which have essentially evolved out of use/style, example of this is the java.awt package, and its replacement javax.swing
The initial hype about Java was due toThe fact that Java was the first programming language developed to be incorporated with the web. Nonetheless, Java is still a fully capable programming language outside of web applets. It is an Object Oriented Programming language.
These are the fundamental elements that make up a programObjects
Java Standard Class LibrarySoftware which accompanies the Java Programming Language which makes the following jobs easier: creating graphics, communication over a network, and interacting with databases
Inline DocumentationComments included within a programs code
Function of DocumentationTo make the computer code more readable by humans
This is a group of programming statements that is given a collective nameMethod/function
These are delimited by a set of curly bracesClass definitions and method definitions (along with a lot of other things like control structures, selection statements, repetition statements...)
A special method which defines the commencement of a program, where all the processing beginsMain Method
Program terminationWhen it ends
Invoking or calling a methodProgrammer does this when he wants the method to execute
Program termination ends whenThe last line in the main method ends, unless you use a special command like System.exit(0)
The methods of the Java.lang package needn't be defined in classes thatUse it, that is because that standard package is automatically imported/included in every java class.
Comments should provide insight into the programmer'sOriginal intent. The comments are the only section of the program, where the programmer can explain his thought process independent of the code of the program. The alternative is to create separate documentation files, like you might see in a ReadMe file or a Bug Report file.
Good documentation is important for longevity and cooperation of programmers. Why?When programs are initially written, the meaning of each line and its relation to the overall program is very clear to the programmer working on the program. However, once the job has been done, the programmer will likely forget that nuanced understanding he initially had when creating the software in the first place, as it has become more of an application. At these times, you need good documentation, to quickly fill in the details of the program's code. Also, over the lifetime and use of a piece of software, many developers might end up using and maintaining it, and if the code is completely illegible or unintelligible, than it will make their job a ton harder in maintaining and modifying the code, or even making sense of it, that is unless good documentation, and self-describing code is utilized.
Comments are ignored by thecomputer and compiler. The code runs as if the comments were never there.
This is the commenting style for the multiline javadoc/** */
This is the commenting style for multiline comments/* */
This is the commenting style for single line comments//
What is the javadoc?Tool which automatically generates external documentation about your program
Comments should be well written incomplete sentences. Avoid belaboring the obvious, and try and provide insight into the original intent of the code.
3 categories of identifiers used in writing a program1) Words that we make up when writing a program (names of objects and variables and classes and methods) 2) Words that another programmer chose (Java Standard library classes, code borrowed from another programmer to fulfill a function) 3) Words that are reserved for special purposes in the language (public, static, void, class, main, double, int, return, while, switch, this, true...)
These identifier words have a special meaning in a programming language and can only be used in predefined waysReserved words. These can only be used for the one purpose they are predefined to be used for in the Java Language.
These are potential characters that can compose an identifier$,_,letters, or digits
Restrictions on identifiersCannot begin with a digit, can be of any length
Are identifiers case sensitive?yes
Are stylistic naming conventions Java rules for naming identifiers?No, but they are used for making your code more readable for the human programmer. They are considered "good programming practice".
Class names follow this naming conventionTitle case, uppercase the first letter of each word
Identifier names should bedescriptive and readable.
This consists of identifiers separated by dot characters, such as System.out.println()Name. A name consists of identifiers conjoined by the dot character.
Types of white spaceTabs, new line characters, and blanks.
Function of White SpaceTo make the code more readable. The computer ignores white space in all cases, except when it is used to separate identifiers and names
Origin of "white space"When you look at a printed piece of text, the white space is that which is between all the black printed text on the page.
With the flexibility of white space, there are an infinite number of coded programs thatExecute in the exact same manner. This means you need to have an organized manner for using white space to express your program solutions in a readable manner.
Program DevelopmentThe writing of a program and the fixing of errors that come up along the way to getting functional intended executable code.
Analogy b/w human languages and computer languagesJust as someone can communicate the same solvent driving directions in Spanish, Hindi, English, or Japanese; a computer can conduct a program solution, like a spreadsheet, in any assortment of computer languages like C, Ada, Smalltalk, or Java. The difference is the particular statements/syntax/and organization of the statements, but as long as the computer can understand (compile/run) those languages, then the spreadsheet will do the same thing.
A computer must be able to do what in order to carry out the instructions.Understand the instructions.
4 groups of computer languages:Machine Language Assembly Language High-level Languages Fourth-generation Languages
Machine Language is coded to operate withA particular CPU. This is the most atomic level of computer instruction we have.
0s and 1s are the identifiers used in this type of computer languageMachine Language
The second evolution of computer languages arose due to the human difficulty to comprehend and think in terms of Machine language. This evolution was calledAssembly Language. It used mnemonics of human words to replace binary digits. Problem with Assembly Language is that it can not be directly executed by a machine, it must first be translated to machine code/language.
These languages are closest to the computers native language.Low-level languages
These languages are far removed from the machine language which is ultimately executedHigh-level languages
A high-level language insulated programmers from needing to know theunderlying machine language for the CPU on which they are working. And in the case of JAVA, allows CPU independent code.
All high-level language code, or code above the binary machine language must betranslated to machine code prior to execution, by the machine.
These languages may have facility for automatic report generation or interaction with a database, they are also the most recent computer languagesFourth generation languages
3 software development toolsEditor Compiler Interpreter
This is the code that originates from the software developers workSource code
This is the language that the source code is translated to in compilationTarget language
This is similar to a compiler, except it interweaves the compiling and execution activitiesInterpreter
These softwares consist of a set of tools which aid in creating, testing, and modifying a program.Integrated Development Environments
Examples of IDEs includeNetbeans, Eclipse
These tools are found in most IDEsCompiler, interpreter, debugger, documentation generator, archiving tools, tools which helps you visualize your program structure
Alias for the Sun Java Software Development KitJava development kit, JDK, SDK
Netbeans and eclipse are developed bySun and IBM respectively
SyntaxEach programming language has its own unique syntax which determines how the vocabulary elements can be combined to form statements/instructions
Are the syntax of C and C++ and Java similar?yes
Adherence to syntax rules are checked when?During compilation.
Examples of syntax rules areClass definitions and method definitions begin and end with a curly brace. Identifiers cannot begin with a digit.
SemanticsDefine what will happen when a programming statement is executed. Programming languages are generally unambiguous, which means there is only one way to interpret what will happen for executing a given programming statement. Human languages on the other hand, have very ambiguous semantics, which means, they can be interpreted in a dozen different ways.
Computer semantics are unambiguous becausea computer cannot decipher a meaning from two possible values
A mnemonic to remind us that the programmer is responsible for the accuracy and reliability of a program.Garbage in, garbage out.
3 types of errors in writing softwareCompile-time error Run-time error Logical error
When syntax errors are caught in the compilation, this doesn't occurproduction of an executable
Robust codeCode that has as few run-time errors as possible.
Run-time errors are aliased with errors thatcrash the software.
An alias for run-time errors isexceptions which can be caught and dealt with accordingly
These types of errors are distinct from compile time errors or run-time errors, in that they are the result of mistakes in articulation by the programmerLogical errors.
This is the dominant approach used in commercial software developmentObject oriented programming
OOP makes solving problems easier becauseit allows us to map objects to real entities we are talking about, like employees, bank accounts, students, etc.
OOP helps us solve problems, which is the purpose ofwriting a program
5 step process to problem solving1) Understanding the problem 2) Designing a solution 3) Considering alternatives to the solution and refining the solution 4) Implementing the solution 5) Testing the solution and fixing any problems that exist
This defines the boundaries of the problem we are trying to solve. It helps us programmers stay focused on what we are trying to accomplish, rather than falling down rabbit hole tangents or solving problems we didn't initially care to solve.Problem domain. If we wanted to write a program for Madden '09, the problem domain would be NFL football.
Program design and coding involvesbreaking a solution down into manageable pieces. First we design separate pieces that are responsible for certain parts of the solution, then we integrate the pieces together to form a complete solution.
It is advised to consider alternative approaches at this time, as it makes it easier to modify our approach.Earlier on in the development process. Think about it, as you are building a house, and after you have already laid down the foundation and the structural skeleton of the house, you decide on a different design, you would have to scrap all that material and work, and restart which amounts to a lot of waste.
Too often this act is mistake for programming.Writing code. In most cases, the act of designing the program should be far more interesting and creative than the implementation part in which the code is actually typed up.
Our primary goal in programming is tosolve problems.
Every object hasa state and a set of behaviors. The state is the "state of being" of an object, fundamental characteristics that define it at any given point in time. The behaviors consist of activities the object might engage in. For a football player, the state might include his injury status, his bench press max, his speed in the 100 meter dash, and his behaviors might include touchdown dance, sprint, spin, dive, and tackle.
Primitive Datarepresents very fundamental data elements such as numbers and characters and symbols.
Attributes of an objectcollectively define its current state (of being). These attributes can be objects or primitives. Just as a football player might have the object attribute of sponsor brand or type of padding used, he also has primitive attributes like shoe size, jersey number, and top speed.
Methods of an objectDefine the potential behaviors of that object. A car would have to have accelerate, break, air conditioning, cruise control, adjust chair, pop trunk, etc.
An object is defined by thisA class. Think of a class as an architectural blueprint for a house. The blueprint defines the fundamental aspects of the house, and can go into as much detail as the architect would like to. The key point is, that once the blueprint has been drawn up, several houses can be built using it, and will fit the model it has delineated.
Before you can create any objects you mustdefine a class.
Function of EncapsulationTo allow objects privacy over their own information. Just as Masi's house is encapsulated by the gate at her house, and can only be accessed/modified with the password, similarly, attributes of an object should have gates, which can only be opened with a password, in this case getter and setter methods.
Function of InheritanceTo allow class definitions to build off one another, and reuse previously made code. Derived classes can be distinct from the higher level classes.
Polymorphismused for doing things with multiple objects
What is the output for: System.out.print ("Zero... "); System.out.println ("Liftoff!");Zero... Liftoff!
These are used within strings to output special characters and white spacesEscape sequences
Most of the information we manage in a program is represented byVariables.
This is a name for a memory location used to hold a value of a particular data type.Variable.
Doing this to data leaves it intact in memory, but an assignment statement overwrites the old data.Accessing/getting data.
Because Java is like this, we cannot assign a value of one type to a variable of an incompatible type.Strongly typed.
The difference between named constants and variables is thatthe former holds the same value throughout the duration of its existence, where as the latter can change its value over the course of its existence
The 8 primitive data typesBoolean Char Byte Short Int Long Float Double
Number of Significant Digits in a Float Data Type7
What must we append at the end of float assignments?an upper or lowercase F
What must we append at the end of long assignments?an upper or lowercase L
This is a list of characters in a particular order which defines the valid values for the character variable.Character set
2 popular character sets includeASCII and Unicode
These are sometimes called nonprinting or invisible characters because they do not have a specific symbol that represents them.Control Characters such as carriage return, null, and end of text marks
A character set is sort of like an arrayIn that every character is assigned a number, and that number aids in determining alphabetical (alphanumeric) ordering, for example with the String class, compareTo method
Can booleans be converted to other data types?No, and the reverse is also not true.
These are combinations of operators and operands used to perform a calculationexpressions
During this special division operation, the fractional portion of the result is truncated.Integer Division.
During floating point division, the decimal value isretained.
Unary operatorsHave only one operand. It is generally used for negative numbers, or negative a value of an expression. The (+) and (-) operators can be unary or binary. As unary operators they represent positive and negative numbers, and as binary operators they represent addition and subtraction.
Java follows a well-defined set of these which governs the order in which operators will be evaluated in an expression.Precedence rules.
What happens when you use the += assignment operator on strings?String concatenation, biznatch.
Widening and narrowing conversions are based on thenumber of bits in the source data type and the number of bits in the destination data type
Information can be lost only in a narrowing conversion.False, it can also be lost in a widening conversion, in which an int like a long is converted to a float like a double, in which precision may be lost.
What are the three ways conversion between data types can occurAssignment conversion Promotion Casting
What types of conversions are possible in assignment conversions?Only widening conversions.
Examples of promotion conversionWhen floating point division occurs between a float and an integer variable, the integer variable is first promoted to a float, and then the division carried out. Concatenation with a String and a number, first the number is promoted to a String, then the concatenation takes place.
Casting is a form ofunary operation
This class provides methods for reading input of various types from various sources.Scanner class.
What does the following method from the scanner class do? Boolean hasNext()returns true if the scanner has another token in its input
What does the following method from the scanner class do? Scanner useDelimiter (String pattern)Set's the scanner's delimiting pattern
A Scanner object processes the input like this, based on the methods used to read the data and the delimiters used to separate the input values.One token at a time.
A complete picture is stored bystoring the color of each individual pixel.
Picture ResolutionThe number of pixels in a photo.
Monitor ResolutionThe number of pixels a monitor can display
A black and white picture can be stored with each pixel represented bya zero for white and a 1 for black.
Every color can be represented from a combination of these three colorsRed, Green, and Blue
In Java, colors are referred to by theirRGB value, or the value of their three components of Red, Green, and Blue
This class is used in this package to define colors for graphical elements in Java.Color class, java.awt package.
Java's predefined colors have corresponding RGB values.True. The same color can be referenced in one of two ways, the Color class's predefined color, or the RGB value. The color class only has a dozen or so predefined colors, however.
The 2 types of Java Programs and their distinctionApplication and an Applet. A Java application is a stand-alone program that can be executed on any Java Interpreter. An applet is a program intended to be used within HTML documents, and viewed with Java-ready web browsers. Applets are intended to be easily distributed over networks and viewable in web browsers, but that needn't be the case. The SDK comes with an appletviewer, which allows you to run applets similarly to how you run applications.
These classes must be declared as public.Applet classes
Applet classes must extend and import what?the Japplet class in the javax.swing package
What is one principle difference between the execution of an application and an applet?Applets don't contain main methods.
Graphics contextthese are passed into the paint method used especially in applets. Each one of these has their own coordinate system.
Before an applet can be viewed in a web browser you mustcompile the applet into bytecode (.class file)
How is the NumberFormat class instantiated?We learned 2 ways NumberFormat <identifier> = NumberFormat.getCurrencyInstance(); NumberFormat <identifier> = NumberFormat.getPercentInstance();
How do we apply the formatting of a NumberFormat instance?<identifier>.format(<double variable>);
Legacy SystemsThese are like how the IRS supports their databased on Fortran and COBOL, despite much newer programming languages and programming paradigms. Maintaining these legacy systems is often expensive, but migrating them to newer software would often be even more expensive.
This method is used primarily as support for migrations of legacy systems to Java, for formatting outputprintf method
Can an enumerated type be declared within a method?No.
This value represents the ordered value of a particular value in an enumerated type class.Ordinal value.
What package defines all the wrapper classes?java.lang
These classes are generally used when we want a primitive to behave like a an object reference.Wrapper classes.
This is a unique conversion which automatically converts between primitive values and corresponding wrapper objects.Autoboxing and its reverse function, unboxing.
These are a subset of Java applications, which only interact with the user through simple text prompts.Command-line applications
The types of GUI components arelabels text fields buttons scroll bars menus
This is a special type of GUI component which is used to hold and organize other GUI componentsContainer
Examples of GUI containers includeFrames and panels
This was the original Java GUI packagejava.awt, or the Abstract Windowing Toolkit
What is the primary distinction b/w the Jpanels and the Jframes?The former can not be displayed on its own. It must be added to another container to be displayed. The latter can be displayed on its own.
Is a frame a lightweight component?No. It is a heavyweight.
Is a panel a lightweight component?Yes.
What is a heavyweight container?One that is managed by the underlying OS.
What is a lightweight container?A container that is managed by the Java program itself.
All visible elements of a Java interface are displayed in the frame'scontent pane.
A GUI application is generally made byCreating components, adding them to a panel, creating a frame, adding the panel to the frame's content pane.
The function of a GUI labelTo display text and/or image. Usually they mark other components, or display information.
Every container is managed by alayout manager, which determines how the components in the container are laid out.
Panels and containers can be nested to create an intricate one of thesecontainment hierarchy of components.

Set Information

Terms 267
Creator The23BiggestMen
Created September 28, 2008
Groups None
Subject computer science/programming
Access Anyone
Edit Creator Only
Get rid of ads on Quizlet

Description

Chapters 1-3 from Lewis and Loftus - Java, 5th edition

Pop out

Discuss

No Messages
Last Message: never

You must be logged in to discuss this set.

Top Users

  1. The23BiggestMen - 245 scores
  2. tikuiaku - 1 score

Most Missed Words

  1. Function of the CPU Execute individual commands of a program - 2 misses
  2. All visible elements of a Java interface are displayed in the frame's content pane. - 1 miss
  3. With the flexibility of white space, there are an infinite number of coded programs that Execute in the exact same manner. This means you need to have an organized manner for using white space to express your program solutions in a readable manner. - 1 miss
  4. What does the following method from the scanner class do? Scanner useDelimiter (String pattern) Set's the scanner's delimiting pattern - 1 miss
  5. Picture Resolution The number of pixels in a photo. - 1 miss
  6. Controllers Aid in the transmission and translation of peripherals information on the computer system. - 1 miss
  7. Program termination When it ends - 1 miss