Deck 1: Introduction
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/76
Play
Full screen (f)
Deck 1: Introduction
1
What is an example of a typical instruction in a computer program?
A)Add up two numbers.
B)Lay out a term paper.
C)Drive a car.
D)Display a fancy font.
A)Add up two numbers.
B)Lay out a term paper.
C)Drive a car.
D)Display a fancy font.
Add up two numbers.
2
Which statement is true about running a Java program on a different CPU?
A)You need different Java source code for each CPU.
B)You can take code that has been generated by the Java compiler and run it on different CPUs.
C)You need to compile the Java program for each CPU.
D)You cannot run the program on a different CPU because Java, being a high-level programming language, is machine dependent.
A)You need different Java source code for each CPU.
B)You can take code that has been generated by the Java compiler and run it on different CPUs.
C)You need to compile the Java program for each CPU.
D)You cannot run the program on a different CPU because Java, being a high-level programming language, is machine dependent.
You can take code that has been generated by the Java compiler and run it on different CPUs.
3
Which statement best describes a computer program?
A)A program is a sequence of comments.
B)A program can decide what task it is to perform.
C)A program is a sequence of instructions and decisions that the computer carries out.
D)A program can only perform one simple task.
A)A program is a sequence of comments.
B)A program can decide what task it is to perform.
C)A program is a sequence of instructions and decisions that the computer carries out.
D)A program can only perform one simple task.
A program is a sequence of instructions and decisions that the computer carries out.
4
Which statement regarding computer programs is correct?
A)Computer programs can decide what task to perform.
B)Large and complex computer programs are generally written by only one programmer.
C)Computer programs are composed of extremely primitive operations.
D)Small computer programs are not documented.
A)Computer programs can decide what task to perform.
B)Large and complex computer programs are generally written by only one programmer.
C)Computer programs are composed of extremely primitive operations.
D)Small computer programs are not documented.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
5
Where must program instructions and data reside in order for the CPU to directly read and execute them?
A)memory
B)bus
C)hard disk
D)somewhere on the computer network
A)memory
B)bus
C)hard disk
D)somewhere on the computer network
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
6
What is the term used to refer to Java code that runs in a browser?
A)applet
B)script
C)html
D)class
A)applet
B)script
C)html
D)class
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
7
Some computers are self-contained units; others are interconnected through what?
A)bus
B)networks
C)peripheral devices
D)power lines
A)bus
B)networks
C)peripheral devices
D)power lines
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
8
Which type of secondary storage consists of rotating platters coated with a magnetic material?
A)hard disk
B)solid state drive
C)compact disk (CD)
D)memory
A)hard disk
B)solid state drive
C)compact disk (CD)
D)memory
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
9
Which one of the following memory types provides storage that persists without electricity?
A)primary storage
B)RAM
C)memory
D)secondary storage
A)primary storage
B)RAM
C)memory
D)secondary storage
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
10
What tool translates high-level instructions into low level machine code?
A)debugger
B)assembler
C)compiler
D)linker
A)debugger
B)assembler
C)compiler
D)linker
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
11
Which memory type does not provide persistent storage?
A)secondary storage
B)hard disk
C)primary storage
D)DVD
A)secondary storage
B)hard disk
C)primary storage
D)DVD
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
12
What tool translates Java source code into files that contain instructions for the Java Virtual Machine?
A)linker
B)compiler
C)assembler
D)interpreter
A)linker
B)compiler
C)assembler
D)interpreter
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
13
What term is used to refer to languages that allow programmers to describe tasks at a higher conceptual level than machine code?
A)virtual
B)high-level
C)sophisticated
D)conceptual
A)virtual
B)high-level
C)sophisticated
D)conceptual
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
14
What term is used to refer to the computer instructions that are executed by a CPU?
A)virtual machine
B)machine code
C)high-level code
D)instruction set
A)virtual machine
B)machine code
C)high-level code
D)instruction set
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
15
What does CPU stand for?
A)Computer Programming Unit
B)Computer Processing Unit
C)Central Processing Unit
D)Central Programming Unit
A)Computer Programming Unit
B)Computer Processing Unit
C)Central Processing Unit
D)Central Programming Unit
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
16
Which one of the following memory types provides storage that is slower and less expensive?
A)primary storage
B)secondary storage
C)peripheral device
D)the transistor
A)primary storage
B)secondary storage
C)peripheral device
D)the transistor
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
17
What is the Java Virtual Machine?
A)A CPU that runs compiled Java code.
B)A library that makes it possible to write portable programs.
C)A program that simulates a real CPU running compiled Java code.
D)A program that translates Java code into machine instructions.
A)A CPU that runs compiled Java code.
B)A library that makes it possible to write portable programs.
C)A program that simulates a real CPU running compiled Java code.
D)A program that translates Java code into machine instructions.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
18
Which one of the following is NOT a function of a CPU?
A)Performing arithmetic operations
B)Processing data and controlling programs
C)Querying a database
D)Fetching and storing data from storage and input devices
A)Performing arithmetic operations
B)Processing data and controlling programs
C)Querying a database
D)Fetching and storing data from storage and input devices
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
19
Which type of storage is made from electronic circuits that can store data?
A)compact disk (CD)
B)hard disk
C)primary storage
D)secondary storage
A)compact disk (CD)
B)hard disk
C)primary storage
D)secondary storage
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
20
Which is an example of a peripheral device?
A)the CPU
B)primary storage
C)motherboard
D)speakers
A)the CPU
B)primary storage
C)motherboard
D)speakers
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
21
The line public class HelloPrinter indicates which declaration below?
A)Declaration of the variable class.
B)Declaration of the class HelloPrinter.
C)Declaration of the variable public.
D)Declaration of the class public.
A)Declaration of the variable class.
B)Declaration of the class HelloPrinter.
C)Declaration of the variable public.
D)Declaration of the class public.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
22
What is the argument in the given method call?
System.out.println("Welcome");
A)out
B)println
C)"Welcome"
D)System
System.out.println("Welcome");
A)out
B)println
C)"Welcome"
D)System
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
23
Arguments supplied to methods are enclosed by which symbols?
A)()
B)" "
C){}
D)//
A)()
B)" "
C){}
D)//
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
24
Which statement best describes the portability characteristic of Java?
A)The same already-compiled Java programs will run on Windows, UNIX, Linux, or Macintosh operating systems without any change.
B)The same Java compiler can be used on many operating systems.
C)There are only small
A)The same already-compiled Java programs will run on Windows, UNIX, Linux, or Macintosh operating systems without any change.
B)The same Java compiler can be used on many operating systems.
C)There are only small
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
25
Assuming the programmer wishes to display "Hello!" on the screen, which statement is true about the following Java code fragment:
System.out.println("Helo!");
A)There is a run-time error.
B)There are no errors.
C)There is a compile-time error.
D)There are multiple errors.
System.out.println("Helo!");
A)There is a run-time error.
B)There are no errors.
C)There is a compile-time error.
D)There are multiple errors.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
26
What term is used to refer to values supplied to a method that are needed to carry out its task?
A)class
B)object
C)argument
D)comment
A)class
B)object
C)argument
D)comment
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
27
Whenever a method is called in Java, what must be specified?
A)program name, method name
B)strings, method name
C)method name, arguments
D)the main method, arguments
A)program name, method name
B)strings, method name
C)method name, arguments
D)the main method, arguments
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
28
No matter which Java development environment you use, what happens to the Java source code in order for a Java program to execute?
A)The source code is automatically separated into many files.
B)The source code is backed up to a network storage facility.
C)A Java compiler converts all uppercase letters to lowercase.
D)A Java compiler translates the source code into class files.
A)The source code is automatically separated into many files.
B)The source code is backed up to a network storage facility.
C)A Java compiler converts all uppercase letters to lowercase.
D)A Java compiler translates the source code into class files.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
29
Suppose that a computer virus infects your computer and corrupts the files you were going to submit for your current homework assignment.What precaution could have saved you from a disastrously bad grade for this assignment?
A)Defragment the hard drive.
B)Purchase an anti-virus program to remove the virus from your computer.
C)Make regular backups of all your important files.
D)Purchase an extended warranty for your computer.
A)Defragment the hard drive.
B)Purchase an anti-virus program to remove the virus from your computer.
C)Make regular backups of all your important files.
D)Purchase an extended warranty for your computer.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
30
Every Java program consists of one or more of these fundamental building blocks.
A)class
B)CPU
C)applet
D)parameter
A)class
B)CPU
C)applet
D)parameter
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
31
A __________ contains sequences of programming instructions that describe how to perform a particular task.
A)parameter
B)label
C)variable
D)method
A)parameter
B)label
C)variable
D)method
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
32
Why should you set aside time to become familiar with the programming environment?
A)The time you spend will prevent data loss without the need for backups.
B)The tools needed for Java programming are different from other software.
C)Although computer systems vary widely, the Java programming environment is always the same.
D)The Java libraries are detailed and extensive.
A)The time you spend will prevent data loss without the need for backups.
B)The tools needed for Java programming are different from other software.
C)Although computer systems vary widely, the Java programming environment is always the same.
D)The Java libraries are detailed and extensive.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
33
What is the output of the following Java statement?
System.out.println(4 + 6);
A)4 + 6
B)4
C)10
D)46
System.out.println(4 + 6);
A)4 + 6
B)4
C)10
D)46
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
34
Which statement is true about the following Java code fragment:
System.out.println("Hello!);
A)There is a run-time error.
B)There are no errors.
C)There is a compile-time error.
D)There are multiple errors.
System.out.println("Hello!);
A)There is a run-time error.
B)There are no errors.
C)There is a compile-time error.
D)There are multiple errors.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
35
What is the name of the file that contains the Java source code for the public class HelloPrinter?
A)HelloPrinter
B)HelloPrinter.java
C)HelloPrinter.class
D)HelloPrinter.txt
A)HelloPrinter
B)HelloPrinter.java
C)HelloPrinter.class
D)HelloPrinter.txt
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
36
What term is used to refer to a sequence of characters enclosed in quotation marks?
A)string
B)object
C)comment
D)variable
A)string
B)object
C)comment
D)variable
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
37
What is the name of the method in the given method call?
System.out.println("Welcome");
A)"Welcome"
B)System
C)println
D)out
System.out.println("Welcome");
A)"Welcome"
B)System
C)println
D)out
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
38
When was Java officially introduced?
A)1991
B)1995
C)2000
D)2005
A)1991
B)1995
C)2000
D)2005
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
39
What is the syntax for calling the println method on the object System.out?
A)println("Any message").System.out;
B)System.out("Any message").println;
C)System.out.println("Any message");
D)println(System.out,"Any message");
A)println("Any message").System.out;
B)System.out("Any message").println;
C)System.out.println("Any message");
D)println(System.out,"Any message");
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
40
What is the output of the following Java statement?
System.out.println("4 + 6");
A)10
B)46
C)4
D)4 + 6
System.out.println("4 + 6");
A)10
B)46
C)4
D)4 + 6
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
41
A sequence of steps that can be carried out in practice is ______________.
A)unambiguous
B)terminating
C)executable
D)documented
A)unambiguous
B)terminating
C)executable
D)documented
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
42
The error message "cannot find symbol" is usually a good clue that what kind of error has been made?
A)logic
B)spelling
C)run-time
D)division by zero
A)logic
B)spelling
C)run-time
D)division by zero
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
43
Assuming the programmer wishes to output the phrase "Welcome!", Which statement is true about the following Java statement:
System.out.println("Welcome!");
A)There are no errors.
B)There is a run-time error.
C)There are multiple errors.
D)There is a compile-time error.
System.out.println("Welcome!");
A)There are no errors.
B)There is a run-time error.
C)There are multiple errors.
D)There is a compile-time error.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
44
What is the term used to describe an error detected by the compiler that is a violation of the programming language rules?
A)logic error
B)compile-time error
C)run-time error
D)typo
A)logic error
B)compile-time error
C)run-time error
D)typo
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
45
Who or what is responsible for inspecting and testing the program to guard against logic errors?
A)JVM
B)programmer
C)end-user
D)compiler
A)JVM
B)programmer
C)end-user
D)compiler
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
46
Assume that the following Java statement is contained in the main method of the class named Hello:
System.out.printLine("Hello!");
What is the name of the file generated by the Java compiler?
A)Hello.java
B)Hello
C)No file is generated due to an error.
D)Hello.class
System.out.printLine("Hello!");
What is the name of the file generated by the Java compiler?
A)Hello.java
B)Hello
C)No file is generated due to an error.
D)Hello.class
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
47
Other than compile-time error, what is another term used to describe an error detected by the compiler that is a violation of the programming language rules?
A)typo
B)logic error
C)syntax error
D)run-time error
A)typo
B)logic error
C)syntax error
D)run-time error
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
48
Other than run-time error, what is another term used to describe an error causing a program to take an action that the programmer did not intend?
A)syntax error
B)logic error
C)mistake
D)compile-time error
A)syntax error
B)logic error
C)mistake
D)compile-time error
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
49
If you get a sequence of error messages from the compiler that are increasingly off track, you should
A)check for division by zero
B)restructure your code to make it more readable
C)check for spelling, capitalization, or missing quotation marks
D)include more of your code within themain method
A)check for division by zero
B)restructure your code to make it more readable
C)check for spelling, capitalization, or missing quotation marks
D)include more of your code within themain method
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
50
A sequence of steps that contains precise instructions for what to do at each step and where to go next is ______________.
A)unambiguous
B)terminating
C)executable
D)documented
A)unambiguous
B)terminating
C)executable
D)documented
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
51
Assuming the programmer wishes to output the phrase "Welcome!", which of the following is true about the following Java statement.
System.out.Println("Wlcome!");
A)There are no errors.
B)There is a compile-time error.
C)There is a run-time error.
D)There are multiple errors.
System.out.Println("Wlcome!");
A)There are no errors.
B)There is a compile-time error.
C)There is a run-time error.
D)There are multiple errors.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
52
Assuming the programmer wishes to display "Hello!" on the screen, which statement is true about the following Java code fragment:
System.out.printn("Helo!");
A)There is a run-time error.
B)There are no errors.
C)There is a compile-time error.
D)There are multiple errors.
System.out.printn("Helo!");
A)There is a run-time error.
B)There are no errors.
C)There is a compile-time error.
D)There are multiple errors.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
53
A sequence of steps that eventually comes to an end is ______________.
A)unambiguous
B)terminating
C)executable
D)documented
A)unambiguous
B)terminating
C)executable
D)documented
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
54
Which statement is true about the following Java statement:
System.out.Println("Welcome!");
A)There are multiple errors.
B)There are no errors.
C)There is a run-time error.
D)There is a compile-time error.
System.out.Println("Welcome!");
A)There are multiple errors.
B)There are no errors.
C)There is a run-time error.
D)There is a compile-time error.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
55
What is a logic error?
A)A violation of the rules of the computer language.
B)A missing main method.
C)A program that is syntactically correct but does not do what it is supposed to do.
D)An error that is so severe that it generates an exception.
A)A violation of the rules of the computer language.
B)A missing main method.
C)A program that is syntactically correct but does not do what it is supposed to do.
D)An error that is so severe that it generates an exception.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
56
Assuming the programmer wishes to display "Hello!" on the screen, which statement is true about the following Java code fragment:
System.out.println("Hello!");
A)There is a run-time error.
B)There are no errors.
C)There is a compile-time error.
D)There are multiple errors.
System.out.println("Hello!");
A)There is a run-time error.
B)There are no errors.
C)There is a compile-time error.
D)There are multiple errors.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
57
Which statement is true about the compilation process?
A)The compiler will generate CPU specific instructions even if it detects an error.
B)The compiler will generate Java virtual machine instructions even if it detects an error.
C)The compiler will stop compiling when it finds the first error.
D)The compiler will continue compiling after it finds an error.
A)The compiler will generate CPU specific instructions even if it detects an error.
B)The compiler will generate Java virtual machine instructions even if it detects an error.
C)The compiler will stop compiling when it finds the first error.
D)The compiler will continue compiling after it finds an error.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
58
Assuming the programmer wishes to output the phrase "Hello!", which of the following is true about the following Java statement:
System.out.println("Welcme!");
A)There are multiple errors.
B)There is a run-time error.
C)There are no errors.
D)There is a compile-time error.
System.out.println("Welcme!");
A)There are multiple errors.
B)There is a run-time error.
C)There are no errors.
D)There is a compile-time error.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
59
What is the term used to describe an error causing a program to take an action that the programmer did not intend?
A)typo
B)run-time error
C)compile-time error
D)syntax error
A)typo
B)run-time error
C)compile-time error
D)syntax error
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
60
Assume that the main method of the class named Welcome does not contain any compile-time errors.What is the name of the file generated by the Java compiler?
A)Welcome.class
B)Welcome.java
C)No additional file is generated.
D)Welcome
A)Welcome.class
B)Welcome.java
C)No additional file is generated.
D)Welcome
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
61
A sequence of steps is terminating when ___________________________
A)there are precise instructions for what to do at each step and where to go next.
B)it will eventually come to an end.
C)it can be documented.
D)it can be carried out in practice.
A)there are precise instructions for what to do at each step and where to go next.
B)it will eventually come to an end.
C)it can be documented.
D)it can be carried out in practice.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
62
Evaluate the given pseudocode to calculate the weighted score for a student:
What is the final output?
A)89.20
B)89.80
C)87.80
D)92.20

A)89.20
B)89.80
C)87.80
D)92.20
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
63
A sequence of steps is executable when ___________________________
A)it will eventually come to an end.
B)it can be carried out in practice.
C)it is documented.
D)there are precise instructions for what to do at each step and where to go next.
A)it will eventually come to an end.
B)it can be carried out in practice.
C)it is documented.
D)there are precise instructions for what to do at each step and where to go next.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
64
Evaluate the given pseudocode to calculate the weighted score for a student:
What is the final output?
A)89.20
B)87.80
C)89.80
D)92.20

A)89.20
B)87.80
C)89.80
D)92.20
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
65
What is the purpose of the following algorithm?
A)To search for a particular number among 15 numbers.
B)To find the largest among 15 numbers.
C)To print out the 15 numbers.
D)To find the smallest among 15 numbers.

A)To search for a particular number among 15 numbers.
B)To find the largest among 15 numbers.
C)To print out the 15 numbers.
D)To find the smallest among 15 numbers.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
66
Evaluate the given pseudocode to calculate the payment (pmt) with the following test values:
What is the final output?
A)540
B)580
C)500
D)600

A)540
B)580
C)500
D)600
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
67
Evaluate the given pseudocode to calculate the payment (pmt) with the following test values:
What is the final output?
A)960
B)840
C)240
D)720

A)960
B)840
C)240
D)720
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
68
What term is used to refer to an informal description of a sequence of steps for solving a problem?
A)assembly language instructions
B)pseudocode
C)machine instructions for a specific CPU
D)Java virtual machine instructions
A)assembly language instructions
B)pseudocode
C)machine instructions for a specific CPU
D)Java virtual machine instructions
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
69
Which of the following options is true about algorithms?
A)Algorithms are described informally and can contain ambiguous steps.
B)Algorithms are written in a programming language.
C)Algorithms can replace the source code in programs.
D)You must create an algorithm for a problem before you can create a program to solve the problem.
A)Algorithms are described informally and can contain ambiguous steps.
B)Algorithms are written in a programming language.
C)Algorithms can replace the source code in programs.
D)You must create an algorithm for a problem before you can create a program to solve the problem.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
70
A sequence of steps is unambiguous when
A)it will eventually come to an end.
B)it is clearly documented.
C)it can be carried out in practice.
D)there are precise instructions for what to do at each step and where to go next.
A)it will eventually come to an end.
B)it is clearly documented.
C)it can be carried out in practice.
D)there are precise instructions for what to do at each step and where to go next.
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
71
Evaluate the given pseudocode to calculate the efficiency of a vehicle's fuel consumption using the following test values:
What is the final output?
A)15
B)10
C)30
D)20

A)15
B)10
C)30
D)20
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
72
Pseudocode must be
i.Unambiguous.
ii.Syntactically correct code.
iii.Readable by a human.
iv.Indicative of results of an algorithm.
A)i, ii
B)i, ii, iii
C)i, iii, iv
D)ii, iii, iv
i.Unambiguous.
ii.Syntactically correct code.
iii.Readable by a human.
iv.Indicative of results of an algorithm.
A)i, ii
B)i, ii, iii
C)i, iii, iv
D)ii, iii, iv
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
73
Evaluate the given pseudocode to calculate the efficiency of a vehicle's fuel consumption using the following test values, rounded to one decimal place:
The trip odometer reading (odometer) = 350
The amount to fill the gas tank (amount) = 12
What is the final output?
A)27.7
B)29.2
C)34.4
D)32.3
The trip odometer reading (odometer) = 350
The amount to fill the gas tank (amount) = 12

A)27.7
B)29.2
C)34.4
D)32.3
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
74
What is the correct order of the steps in the program development process:
i.Develop and describe the algorithm.
ii.Translate the algorithm into Java.
iii.Understand the problem.
iv.Compile and test the program.
v.Test the algorithm with
A)iii, i, ii, iv, v
B)i, ii, iv, v, iii
C)iii, i, v, ii, iv
D)i, iii, v, ii, iv
i.Develop and describe the algorithm.
ii.Translate the algorithm into Java.
iii.Understand the problem.
iv.Compile and test the program.
v.Test the algorithm with
A)iii, i, ii, iv, v
B)i, ii, iv, v, iii
C)iii, i, v, ii, iv
D)i, iii, v, ii, iv
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
75
What is the purpose of the following algorithm?
A)To print out the 10 numbers
B)To search for a particular number among 10 numbers
C)To find the largest among 10 numbers
D)To find the smallest among 10 numbers

A)To print out the 10 numbers
B)To search for a particular number among 10 numbers
C)To find the largest among 10 numbers
D)To find the smallest among 10 numbers
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck
76
What term is used to refer to a sequence of steps for solving a problem that is unambiguous, executable, and terminating?
A)documentation
B)pseudoprogram
C)algorithm
D)comments
A)documentation
B)pseudoprogram
C)algorithm
D)comments
Unlock Deck
Unlock for access to all 76 flashcards in this deck.
Unlock Deck
k this deck