Deck 1: Introduction to Computers and Programming

ملء الشاشة (f)
exit full mode
سؤال
________ is used in a C++ program to mark the end of a statement, or to separate items in a list.

A) A separator
B) Punctuation
C) An operator
D) A keyword
E) A blank space
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
A(n) ________ is a set of instructions that tells the computer how to solve a problem.

A) compiler
B) linker
C) program
D) operator
E) variable
سؤال
An integrated development environment (IDE) normally includes

A) a text editor.
B) a compiler.
C) a debugger.
D) all of the above.
E) none of the above.
سؤال
Memory locations that can hold data are called

A) operators.
B) variables.
C) syntax.
D) operands.
E) none of the above.
سؤال
A set of well-defined steps for performing a task or solving a problem is known as

A) a hierarchy chart.
B) a flowchart.
C) a solution engine.
D) an algorithm.
E) software engineering.
سؤال
Before a computer can execute a program written in a high level language, such as C++, it must be translated into object code.
سؤال
The ________ coordinates the computer's operations by fetching the next instruction and using control signals to regulate the other major computer components.

A) arithmetic and logic unit (ALU)
B) traffic controller
C) instruction manager
D) control unit
E) operating system
سؤال
The statements written by a programmer are called

A) syntax.
B) object code.
C) source code.
D) language elements.
E) none of the above.
سؤال
The purpose of the compiler is to convert object code into source code.
سؤال
The purpose of a memory address is

A) to identify the location of a memory cell.
B) to allow multitasking.
C) to prevent multitasking.
D) to locate a program.
E) none of the above.
سؤال
At the heart of a computer is its central processing unit (CPU). Its job is to

A) fetch instructions.
B) carry out the operations commanded by the instructions.
C) produce some result.
D) do all of the above.
E) do none of the above.
سؤال
C++ is an example of a ________ programming language.

A) low-level
B) mid-level
C) high-level
D) binary
E) non-structured
سؤال
Most of the lines in a program contain something meaningful; however, some of the lines may contain nothing at all.
سؤال
The CPU includes

A) the arithmetic and logic unit (ALU) and the control unit.
B) the ALU and the I/O unit.
C) the I/O unit and the control unit.
D) the ALU and the main memory unit.
E) all of the above.
سؤال
Once a value has been stored in a variable it cannot be changed.
سؤال
Creating a program requires many steps. Three of these are

A) input, processing, and output.
B) keywords, operators, and punctuation.
C) program design, writing source code, and testing.
D) syntax, logic, and error handling.
E) none of the above.
سؤال
Characters or symbols that perform operations on one or more operands are

A) syntax.
B) op codes.
C) operators.
D) program ops.
E) none of the above.
سؤال
List five elements that are common to all programming languages.
سؤال
The term hardware refers to

A) the difficulty of programming.
B) the physical components that make up a computer.
C) the way a computer's storage space is organized.
D) the fixed order of a program's instructions.
E) none of the above.
سؤال
The computer's main memory is commonly known as

A) direct-access memory (DAM).
B) random-access memory (RAM).
C) read only memory (ROM).
D) secondary storage.
E) none of the above.
سؤال
In the C++ statement pay = rate * hours;
The * symbol is an example of

A) an operator.
B) an operand.
C) a variable separator.
D) syntax.
E) none of the above.
سؤال
Words with a special meaning that may be used only for their intended purpose are known as

A) single purpose words..
B) programmer-defined identifiers.
C) keywords.
D) syntax words.
E) none of the above.
سؤال
Even when there is no power to the computer, data can be held in

A) a secondary storage device.
B) random accdss memory (RAM).
C) variables.
D) a computer program.
E) any of the above.
سؤال
Executable code is computer code that contains no errors.
سؤال
If a new value is stored in a variable, it replaces whatever value was previously there.
سؤال
A ________ is a complete instruction that causes the computer to perform some action.

A) line
B) line number
C) statement
D) statement number
E) programming construct
سؤال
________ is an example of volatile memory, used for temporary storage while a program is running.

A) A flash drive
B) The ALU
C) RAM
D) The CPU
E) A hard disk
سؤال
Mistakes that allow a program to run, but cause it to produce erroneous results are called

A) syntax errors.
B) logic errors.
C) compiler errors.
D) linker errors.
E) none of the above.
سؤال
Syntax involves rules that must be followed when writing a program.
سؤال
A variable definition always specifies the name of a variable and tells

A) what type of data it can hold.
B) how many times it will be used in the program.
C) the part of the code where it will be used.
D) what its starting value is.
E) all of the above.
سؤال
The programs that control and manage the basic operations of a computer are generally referred to as

A) control programs.
B) utility programs.
C) system hardware programs.
D) system software.
E) computer application programs.
سؤال
Which of the following is an example of a secondary storage device?

A) a hard disk drive
B) a USB flash drive
C) a CD
D) a DVD
E) all of the above
سؤال
Most modern computers can understand and execute pseudocode.
سؤال
The programmer usually enters source code into a computer using

A) a preprocessor.
B) a compiler.
C) a linker.
D) a debugger.
E) none of the above.
سؤال
IDE stands for internal data engine.
سؤال
High-level programming languages include

A) C++ and Java.
B) C++ and JavaScript.
C) C++ and Visual Basic.
D) all of the above.
E) A and B, but not C.
سؤال
Internally, the central processing unit (CPU) consists of two parts:

A) input devices and output devices.
B) software and hardware.
C) the arithmetic and logic unit (ALU) and the control unit.
D) single-task devices and multi-task devices.
E) the compiler and the linker.
سؤال
A software package that includes a text editor, compiler, debugger, and assorted utilities for creating, testing, and running software is called

A) a low-level programming language.
B) a high-level programming language.
C) a software utility package (SUP).
D) an operating system.
E) none of the above.
سؤال
A storage location in the computer's memory that can hold a piece of data is called

A) a variable.
B) a number.
C) a data cell.
D) a storage box.
E) RAM.
سؤال
Three primary activities of a typical program are

A) creating variables, operators, and keywords.
B) executing lines, statements, and keywords.
C) reading, writing, and arithmetic.
D) input, processing, and output.
E) compiling, linking, and debugging.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/40
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 1: Introduction to Computers and Programming
1
________ is used in a C++ program to mark the end of a statement, or to separate items in a list.

A) A separator
B) Punctuation
C) An operator
D) A keyword
E) A blank space
B
2
A(n) ________ is a set of instructions that tells the computer how to solve a problem.

A) compiler
B) linker
C) program
D) operator
E) variable
C
3
An integrated development environment (IDE) normally includes

A) a text editor.
B) a compiler.
C) a debugger.
D) all of the above.
E) none of the above.
D
4
Memory locations that can hold data are called

A) operators.
B) variables.
C) syntax.
D) operands.
E) none of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
5
A set of well-defined steps for performing a task or solving a problem is known as

A) a hierarchy chart.
B) a flowchart.
C) a solution engine.
D) an algorithm.
E) software engineering.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
6
Before a computer can execute a program written in a high level language, such as C++, it must be translated into object code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
7
The ________ coordinates the computer's operations by fetching the next instruction and using control signals to regulate the other major computer components.

A) arithmetic and logic unit (ALU)
B) traffic controller
C) instruction manager
D) control unit
E) operating system
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
8
The statements written by a programmer are called

A) syntax.
B) object code.
C) source code.
D) language elements.
E) none of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
9
The purpose of the compiler is to convert object code into source code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
10
The purpose of a memory address is

A) to identify the location of a memory cell.
B) to allow multitasking.
C) to prevent multitasking.
D) to locate a program.
E) none of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
11
At the heart of a computer is its central processing unit (CPU). Its job is to

A) fetch instructions.
B) carry out the operations commanded by the instructions.
C) produce some result.
D) do all of the above.
E) do none of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
12
C++ is an example of a ________ programming language.

A) low-level
B) mid-level
C) high-level
D) binary
E) non-structured
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
13
Most of the lines in a program contain something meaningful; however, some of the lines may contain nothing at all.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
14
The CPU includes

A) the arithmetic and logic unit (ALU) and the control unit.
B) the ALU and the I/O unit.
C) the I/O unit and the control unit.
D) the ALU and the main memory unit.
E) all of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
15
Once a value has been stored in a variable it cannot be changed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
16
Creating a program requires many steps. Three of these are

A) input, processing, and output.
B) keywords, operators, and punctuation.
C) program design, writing source code, and testing.
D) syntax, logic, and error handling.
E) none of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
17
Characters or symbols that perform operations on one or more operands are

A) syntax.
B) op codes.
C) operators.
D) program ops.
E) none of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
18
List five elements that are common to all programming languages.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
19
The term hardware refers to

A) the difficulty of programming.
B) the physical components that make up a computer.
C) the way a computer's storage space is organized.
D) the fixed order of a program's instructions.
E) none of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
20
The computer's main memory is commonly known as

A) direct-access memory (DAM).
B) random-access memory (RAM).
C) read only memory (ROM).
D) secondary storage.
E) none of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
21
In the C++ statement pay = rate * hours;
The * symbol is an example of

A) an operator.
B) an operand.
C) a variable separator.
D) syntax.
E) none of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
22
Words with a special meaning that may be used only for their intended purpose are known as

A) single purpose words..
B) programmer-defined identifiers.
C) keywords.
D) syntax words.
E) none of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
23
Even when there is no power to the computer, data can be held in

A) a secondary storage device.
B) random accdss memory (RAM).
C) variables.
D) a computer program.
E) any of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
24
Executable code is computer code that contains no errors.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
25
If a new value is stored in a variable, it replaces whatever value was previously there.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
26
A ________ is a complete instruction that causes the computer to perform some action.

A) line
B) line number
C) statement
D) statement number
E) programming construct
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
27
________ is an example of volatile memory, used for temporary storage while a program is running.

A) A flash drive
B) The ALU
C) RAM
D) The CPU
E) A hard disk
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
28
Mistakes that allow a program to run, but cause it to produce erroneous results are called

A) syntax errors.
B) logic errors.
C) compiler errors.
D) linker errors.
E) none of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
29
Syntax involves rules that must be followed when writing a program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
30
A variable definition always specifies the name of a variable and tells

A) what type of data it can hold.
B) how many times it will be used in the program.
C) the part of the code where it will be used.
D) what its starting value is.
E) all of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
31
The programs that control and manage the basic operations of a computer are generally referred to as

A) control programs.
B) utility programs.
C) system hardware programs.
D) system software.
E) computer application programs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
32
Which of the following is an example of a secondary storage device?

A) a hard disk drive
B) a USB flash drive
C) a CD
D) a DVD
E) all of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
33
Most modern computers can understand and execute pseudocode.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
34
The programmer usually enters source code into a computer using

A) a preprocessor.
B) a compiler.
C) a linker.
D) a debugger.
E) none of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
35
IDE stands for internal data engine.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
36
High-level programming languages include

A) C++ and Java.
B) C++ and JavaScript.
C) C++ and Visual Basic.
D) all of the above.
E) A and B, but not C.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
37
Internally, the central processing unit (CPU) consists of two parts:

A) input devices and output devices.
B) software and hardware.
C) the arithmetic and logic unit (ALU) and the control unit.
D) single-task devices and multi-task devices.
E) the compiler and the linker.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
38
A software package that includes a text editor, compiler, debugger, and assorted utilities for creating, testing, and running software is called

A) a low-level programming language.
B) a high-level programming language.
C) a software utility package (SUP).
D) an operating system.
E) none of the above.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
39
A storage location in the computer's memory that can hold a piece of data is called

A) a variable.
B) a number.
C) a data cell.
D) a storage box.
E) RAM.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
40
Three primary activities of a typical program are

A) creating variables, operators, and keywords.
B) executing lines, statements, and keywords.
C) reading, writing, and arithmetic.
D) input, processing, and output.
E) compiling, linking, and debugging.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.