CISP 400 FINAL EXAM QUESTIONS AND ANSWERS
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 W? javac W -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"? S( "hello" ); Sln( " 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? Sf( "%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? Sln( "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 ) Sln( "a < b" ); if ( a > b ) Sln( "a > b" ); if ( d <= c ) Sln( "d <= c" ); if ( c != d ) Sln( "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 W? 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; c = 37; d = 51; result = d % a * c + a % b + a; A: 119 -Java was originally developed for: Intelligent consumer devices. - ________ helps Internet-based applications perform like desktop applications. Ajax -Which of the following statements is false? Windows is an open source operating system. -Which of the following is not one of the three general types of computer languages? Spoken languages. -Which of the following is not one of the six logical units of a computer? Printer. -_______ involves reworking programs to make them clearer and easier to maintain while preserving their correctness and functionality. Refactoring -Which language was developed by Microsoft in the early 1990s to simplify the development of Windows applications? Visual Basic. -The command ________ executes a Java application. java -The .class extension on a file means that the file: is produced by the Java compiler (javac). -Today, virtually all new major operating systems are written in: C or C++. -When method printf requires multiple arguments, the arguments are separated with ________. commas (,). -Which of the following statements would display the phase Java is fun? Sln( "hellois funrJava " ); -Which is the output of the following statements? S( "Hello "); Sln( "World" ); A: Hello World -Each of the following is a relational or equality operator except: =! -Which of the following escape sequences represents a carriage return? r. -Which of the following cannot cause a syntax error to be reported by the Java compiler? An extra blank line. -How many significant digits does a double variable have? 15. -What is the difference between a float and a double? double variables store numbers with larger magnitude and finer detail. -Calling a method of another object requires which item? The dot separator. -Which class provides prebuilt dialog boxes that enable programs to display windows containing messages (such windows are called message dialogs)? JOptionPane. -Method headers contain all of the following except: Left brace. -A class instance creation expression contains: All of the above. -Which two Java primitive types store floating-point numbers? float and double. -Every Java application is composed of at least one: public class declaration -Which of the following is a valid fully qualified name? .Scanner. -Multiple parameters are separated with what symbol? Comma. -A default constructor has how many parameters? 0. -Which of the following statements is false? You must create an object of class JOptionPane to use its static method showMessageDialog. -What is the name of the values the method call passes to the method for the parameters? Arguments. -What type of methods allow a client of a class to assign values to a private instance variable? Set methods. -Which of the following is a Scanner method? nextLine. -What is the default initial value of a String instance variable? null -Attributes of a class are also known as: Fields. -What is the default value of a reference? null. -Which of the following statements is false? You must create an object of class JOptionPane to use its static method showMessageDialog. -Calling a method of another object requires which item? The dot separator. -What type of methods allow a client of a class to assign values to a private instance variable? Set methods. -Which primitive type can hold the largest value? double -In Java graphics, coordinate units are measured in ________. pixels. -Which of the following is not an error (either a syntax error or a logic error)? Using a condition for a while statement that is initially false. -Which of the following statements about the conditional operator ( ?: ) is false? The second operand is the result value if the condition evaluates to false -Which of the following is not an algorithm? Textbook index. -A decision symbol in an activity diagram takes the shape of a ________. Diamond
Written for
- Institution
- CISP 400
- Course
- CISP 400
Document information
- Uploaded on
- March 5, 2024
- Number of pages
- 21
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
cisp 400 final exam questions and answers which