CISP 400 FINAL EXAM QUESTIONS AND
ANSWERS
-Which of the following statements is false? In use today are more than a trillion
general-purpose computers and trillions more Java-enabled cellphones,
smartphones and other handheld devices.
-Which of the following is most closely associated with Moore's Law? Every year
or two, the capacities of computers have approximately doubled without any
increase in price.
-Which of the following statements is false? The vast majority of the
microprocessors produced each year are used in general-purpose computers.
-Which of the following is not a key organization in the open-source community?
Firefox.
-Which language was developed by Microsoft in the early 1990s to simplify the
development of Windows applications? Visual Basic.
-Which of the following statements is false? The impressive functions performed
by computers involve only the simplest manipulations of 1s and 2s .
-Which of the following statements about Java Class Libraries is false:
Java class libraries are not portable
-The .class extension on a file means that the file: is produced by the Java compiler
(javac).
-Which edition of Java is geared toward developing large-scale, distributed
networking applications and web-based applications? Enterprise Edition.
-Today, virtually all new major operating systems are written in: C or C++.
-Which command compiles the Java source code file Welcome.java? javac
Welcome.java
-Which of the following statements does not alter a memory location? int a;
-Which of the following statements will print a single line containing "hello there"?
System.out.print( "hello" );
System.out.println( " there" );
-Which of the following is the escape character? \
-Which of the following is not a Java primitive type? real
-Which of the following cannot cause a syntax error to be reported by the Java
compiler? An extra blank line.
-A(n) ________ enables a program to read data from the user. Scanner.
-Which of the following escape sequences represents a carriage return? \r.
-Which of the following statement displays Hello World? System.out.printf( "%s
%s", "Hello", "World" );
-Which of the following is a variable declaration statement? int total;
,-Which of the following statements is true? Compilers translate high-level
language programs into machine language programs.
-Which of the following data items are arranged from the smallest to the largest in
the data hierarchy. bits, characters, fields, records, files.
-Which software product release category is "generally feature complete and
supposedly bug free, and ready for use by the community?" Release candidate.
- Which statement is false? A class is an instance of its object.
-________ is a graphical language that allows people who design software systems
to use an industry standard notation to represent them. The Unified Modeling
Language
-Which of the following languages is used primarily for scientific and engineering
applications? Fortran.
-Which of the following companies is widely regarded at the "signature" company
of Web 2.0 ? Google.
-Which of the following statements is false? Information in the memory unit is
persistent—it is retained when the computer's power is turned off.
-_______ models software in terms similar to those that people use to describe
real-world objects. Object-oriented design
-The command ________ executes a Java application. java
-Which of the following is not a compilation error? Placing a semicolon at the end
of the first line of an if statement.
-Which of the following does not contain a syntax error? System.out.println(
"Hello world!" );
-The format specifier ________ is a placeholder for an int value? %d
-Which of the following is not a valid Java identifier? my Value
, -What will be output after the following Java statements have been executed?
int a, b, c, d;
a = 4;
b = 12;
c = 37;
d = 51;
if ( a < b )
System.out.println( "a < b" );
if ( a > b )
System.out.println( "a > b" );
if ( d <= c )
System.out.println( "d <= c" );
if ( c != d )
System.out.println( "c != d" ); A: a < b
c != d
-All import declarations must be placed. before the class declaration.
-Which of the following is not an arithmetic operator? .
-Which command executes the Java class file Welcome.class? java Welcome
-End-of-line comments that should be ignored by the compiler are denoted using.
Two forward slashes ( // ).
-What is the value of result after the following Java statements execute?
int a, b, c, d, result;
a = 4;
b = 12;
ANSWERS
-Which of the following statements is false? In use today are more than a trillion
general-purpose computers and trillions more Java-enabled cellphones,
smartphones and other handheld devices.
-Which of the following is most closely associated with Moore's Law? Every year
or two, the capacities of computers have approximately doubled without any
increase in price.
-Which of the following statements is false? The vast majority of the
microprocessors produced each year are used in general-purpose computers.
-Which of the following is not a key organization in the open-source community?
Firefox.
-Which language was developed by Microsoft in the early 1990s to simplify the
development of Windows applications? Visual Basic.
-Which of the following statements is false? The impressive functions performed
by computers involve only the simplest manipulations of 1s and 2s .
-Which of the following statements about Java Class Libraries is false:
Java class libraries are not portable
-The .class extension on a file means that the file: is produced by the Java compiler
(javac).
-Which edition of Java is geared toward developing large-scale, distributed
networking applications and web-based applications? Enterprise Edition.
-Today, virtually all new major operating systems are written in: C or C++.
-Which command compiles the Java source code file Welcome.java? javac
Welcome.java
-Which of the following statements does not alter a memory location? int a;
-Which of the following statements will print a single line containing "hello there"?
System.out.print( "hello" );
System.out.println( " there" );
-Which of the following is the escape character? \
-Which of the following is not a Java primitive type? real
-Which of the following cannot cause a syntax error to be reported by the Java
compiler? An extra blank line.
-A(n) ________ enables a program to read data from the user. Scanner.
-Which of the following escape sequences represents a carriage return? \r.
-Which of the following statement displays Hello World? System.out.printf( "%s
%s", "Hello", "World" );
-Which of the following is a variable declaration statement? int total;
,-Which of the following statements is true? Compilers translate high-level
language programs into machine language programs.
-Which of the following data items are arranged from the smallest to the largest in
the data hierarchy. bits, characters, fields, records, files.
-Which software product release category is "generally feature complete and
supposedly bug free, and ready for use by the community?" Release candidate.
- Which statement is false? A class is an instance of its object.
-________ is a graphical language that allows people who design software systems
to use an industry standard notation to represent them. The Unified Modeling
Language
-Which of the following languages is used primarily for scientific and engineering
applications? Fortran.
-Which of the following companies is widely regarded at the "signature" company
of Web 2.0 ? Google.
-Which of the following statements is false? Information in the memory unit is
persistent—it is retained when the computer's power is turned off.
-_______ models software in terms similar to those that people use to describe
real-world objects. Object-oriented design
-The command ________ executes a Java application. java
-Which of the following is not a compilation error? Placing a semicolon at the end
of the first line of an if statement.
-Which of the following does not contain a syntax error? System.out.println(
"Hello world!" );
-The format specifier ________ is a placeholder for an int value? %d
-Which of the following is not a valid Java identifier? my Value
, -What will be output after the following Java statements have been executed?
int a, b, c, d;
a = 4;
b = 12;
c = 37;
d = 51;
if ( a < b )
System.out.println( "a < b" );
if ( a > b )
System.out.println( "a > b" );
if ( d <= c )
System.out.println( "d <= c" );
if ( c != d )
System.out.println( "c != d" ); A: a < b
c != d
-All import declarations must be placed. before the class declaration.
-Which of the following is not an arithmetic operator? .
-Which command executes the Java class file Welcome.class? java Welcome
-End-of-line comments that should be ignored by the compiler are denoted using.
Two forward slashes ( // ).
-What is the value of result after the following Java statements execute?
int a, b, c, d, result;
a = 4;
b = 12;