Deck 1: Introduction

ملء الشاشة (f)
exit full mode
سؤال
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.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
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.
سؤال
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.
سؤال
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.
سؤال
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
سؤال
What is the term used to refer to Java code that runs in a browser?

A)applet
B)script
C)html
D)class
سؤال
Some computers are self-contained units; others are interconnected through what?

A)bus
B)networks
C)peripheral devices
D)power lines
سؤال
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
سؤال
Which one of the following memory types provides storage that persists without electricity?

A)primary storage
B)RAM
C)memory
D)secondary storage
سؤال
What tool translates high-level instructions into low level machine code?

A)debugger
B)assembler
C)compiler
D)linker
سؤال
Which memory type does not provide persistent storage?

A)secondary storage
B)hard disk
C)primary storage
D)DVD
سؤال
What tool translates Java source code into files that contain instructions for the Java Virtual Machine?

A)linker
B)compiler
C)assembler
D)interpreter
سؤال
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
سؤال
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
سؤال
What does CPU stand for?

A)Computer Programming Unit
B)Computer Processing Unit
C)Central Processing Unit
D)Central Programming Unit
سؤال
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
سؤال
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.
سؤال
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
سؤال
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
سؤال
Which is an example of a peripheral device?

A)the CPU
B)primary storage
C)motherboard
D)speakers
سؤال
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.
سؤال
What is the argument in the given method call?
System.out.println("Welcome");

A)out
B)println
C)"Welcome"
D)System
سؤال
Arguments supplied to methods are enclosed by which symbols?

A)()
B)" "
C){}
D)//
سؤال
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
سؤال
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.
سؤال
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
سؤال
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
سؤال
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.
سؤال
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.
سؤال
Every Java program consists of one or more of these fundamental building blocks.

A)class
B)CPU
C)applet
D)parameter
سؤال
A __________ contains sequences of programming instructions that describe how to perform a particular task.

A)parameter
B)label
C)variable
D)method
سؤال
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.
سؤال
What is the output of the following Java statement?
System.out.println(4 + 6);

A)4 + 6
B)4
C)10
D)46
سؤال
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.
سؤال
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
سؤال
What term is used to refer to a sequence of characters enclosed in quotation marks?

A)string
B)object
C)comment
D)variable
سؤال
What is the name of the method in the given method call?
System.out.println("Welcome");

A)"Welcome"
B)System
C)println
D)out
سؤال
When was Java officially introduced?

A)1991
B)1995
C)2000
D)2005
سؤال
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");
سؤال
What is the output of the following Java statement?
System.out.println("4 + 6");

A)10
B)46
C)4
D)4 + 6
سؤال
A sequence of steps that can be carried out in practice is ______________.

A)unambiguous
B)terminating
C)executable
D)documented
سؤال
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
سؤال
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.
سؤال
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
سؤال
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
سؤال
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
سؤال
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
سؤال
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
سؤال
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 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
سؤال
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.
سؤال
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.
سؤال
A sequence of steps that eventually comes to an end is ______________.

A)unambiguous
B)terminating
C)executable
D)documented
سؤال
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.
سؤال
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.
سؤال
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.
سؤال
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.
سؤال
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.
سؤال
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
سؤال
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 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.
سؤال
Evaluate the given pseudocode to calculate the weighted score for a student: <strong>Evaluate the given pseudocode to calculate the weighted score for a student:   What is the final output? </strong> A)89.20 B)89.80 C)87.80 D)92.20 <div style=padding-top: 35px> What is the final output?

A)89.20
B)89.80
C)87.80
D)92.20
سؤال
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.
سؤال
Evaluate the given pseudocode to calculate the weighted score for a student: <strong>Evaluate the given pseudocode to calculate the weighted score for a student:   What is the final output? </strong> A)89.20 B)87.80 C)89.80 D)92.20 <div style=padding-top: 35px> What is the final output?

A)89.20
B)87.80
C)89.80
D)92.20
سؤال
What is the purpose of the following algorithm? <strong>What is the purpose of the following algorithm?   </strong> 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. <div style=padding-top: 35px>

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.
سؤال
Evaluate the given pseudocode to calculate the payment (pmt) with the following test values: <strong>Evaluate the given pseudocode to calculate the payment (pmt) with the following test values:   What is the final output? </strong> A)540 B)580 C)500 D)600 <div style=padding-top: 35px> What is the final output?

A)540
B)580
C)500
D)600
سؤال
Evaluate the given pseudocode to calculate the payment (pmt) with the following test values: <strong>Evaluate the given pseudocode to calculate the payment (pmt) with the following test values:   What is the final output? </strong> A)960 B)840 C)240 D)720 <div style=padding-top: 35px> What is the final output?

A)960
B)840
C)240
D)720
سؤال
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
سؤال
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 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.
سؤال
Evaluate the given pseudocode to calculate the efficiency of a vehicle's fuel consumption using the following test values: <strong>Evaluate the given pseudocode to calculate the efficiency of a vehicle's fuel consumption using the following test values:   What is the final output? </strong> A)15 B)10 C)30 D)20 <div style=padding-top: 35px> What is the final output?

A)15
B)10
C)30
D)20
سؤال
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
سؤال
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 <strong>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? </strong> A)27.7 B)29.2 C)34.4 D)32.3 <div style=padding-top: 35px> What is the final output?

A)27.7
B)29.2
C)34.4
D)32.3
سؤال
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
سؤال
What is the purpose of the following algorithm? <strong>What is the purpose of the following algorithm?   </strong> 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 <div style=padding-top: 35px>

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
سؤال
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
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/76
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
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.
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.
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 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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
10
What tool translates high-level instructions into low level machine code?

A)debugger
B)assembler
C)compiler
D)linker
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
11
Which memory type does not provide persistent storage?

A)secondary storage
B)hard disk
C)primary storage
D)DVD
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
20
Which is an example of a peripheral device?

A)the CPU
B)primary storage
C)motherboard
D)speakers
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
23
Arguments supplied to methods are enclosed by which symbols?

A)()
B)" "
C){}
D)//
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
38
When was Java officially introduced?

A)1991
B)1995
C)2000
D)2005
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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");
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
41
A sequence of steps that can be carried out in practice is ______________.

A)unambiguous
B)terminating
C)executable
D)documented
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
53
A sequence of steps that eventually comes to an end is ______________.

A)unambiguous
B)terminating
C)executable
D)documented
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
62
Evaluate the given pseudocode to calculate the weighted score for a student: <strong>Evaluate the given pseudocode to calculate the weighted score for a student:   What is the final output? </strong> A)89.20 B)89.80 C)87.80 D)92.20 What is the final output?

A)89.20
B)89.80
C)87.80
D)92.20
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
64
Evaluate the given pseudocode to calculate the weighted score for a student: <strong>Evaluate the given pseudocode to calculate the weighted score for a student:   What is the final output? </strong> A)89.20 B)87.80 C)89.80 D)92.20 What is the final output?

A)89.20
B)87.80
C)89.80
D)92.20
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
65
What is the purpose of the following algorithm? <strong>What is the purpose of the following algorithm?   </strong> 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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
66
Evaluate the given pseudocode to calculate the payment (pmt) with the following test values: <strong>Evaluate the given pseudocode to calculate the payment (pmt) with the following test values:   What is the final output? </strong> A)540 B)580 C)500 D)600 What is the final output?

A)540
B)580
C)500
D)600
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
67
Evaluate the given pseudocode to calculate the payment (pmt) with the following test values: <strong>Evaluate the given pseudocode to calculate the payment (pmt) with the following test values:   What is the final output? </strong> A)960 B)840 C)240 D)720 What is the final output?

A)960
B)840
C)240
D)720
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
71
Evaluate the given pseudocode to calculate the efficiency of a vehicle's fuel consumption using the following test values: <strong>Evaluate the given pseudocode to calculate the efficiency of a vehicle's fuel consumption using the following test values:   What is the final output? </strong> A)15 B)10 C)30 D)20 What is the final output?

A)15
B)10
C)30
D)20
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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 <strong>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? </strong> A)27.7 B)29.2 C)34.4 D)32.3 What is the final output?

A)27.7
B)29.2
C)34.4
D)32.3
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
75
What is the purpose of the following algorithm? <strong>What is the purpose of the following algorithm?   </strong> 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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 76 في هذه المجموعة.