Deck 1: Introduction to Computers and Programming

ملء الشاشة (f)
exit full mode
سؤال
What does the term hardware refer to?

A)The relative difficulty of programming
B)The physical components that a computer is made of
C)The way a computer's storage space is organized
D)The logical flow of instructions
E)None of the above.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The computer's main memory is commonly known as:

A)The hard disk
B)The floppy disk
C)RAM
D)Secondary storage
E)None of the above
سؤال
Which of the following best describes an operator?

A)An operator is a rule that must be followed when constructing a program.
B)An operator allows you to perform operations on one or more pieces of data.
C)An operator marks the beginning or ending of a statement, or is used to separate items in a list.
D)An operator is a word that has a special meaning.
E)An operator is a symbolic name that refers to a variable.
سؤال
Programmer-defined names of memory locations that may hold data are:

A)Operators
B)Variables
C)Syntax
D)Operands
E)None of the above
سؤال
During which stage does the central processing unit retrieve from main memory the next instruction in the sequence of program instructions?

A)fetch
B)decode
C)execute
D)portability stage
سؤال
An Integrated Development Environment typically consists of:

A)A text editor
B)A compiler
C)A debugger
D)All of the above
E)None of the above
سؤال
What statement best describes a variable and its primary purpose?

A)A variable is a structured, general-purpose language designed primarily for teaching programming.
B)A variable is a collection of eight bits.
C)A variable is a word that has a special meaning to the compiler.
D)A variable is a named storage location in the computer's memory used for holding a piece of information.
E)A variable is a "line" of code in the body of a program, which may change.
سؤال
The programming process consists of several steps, which include:

A)Input, Processing, and Output
B)Key Words, Operators, and Punctuation
C)Design, Creation, Testing, and Debugging
D)Syntax, Logic, and Error Handling
E)None of the above
سؤال
Internally, the CPU consists of two parts:

A)The Output Device and the Input Device
B)The Software and the Hardware
C)The Control Unit and the Arithmetic and Logic Unit
D)The Single-task Device and the Multi-task Device
E)None of the above
سؤال
This term refers to the programmer reading the program from the beginning and stepping through each statement.

A)Pseudocoding
B)Software Engineering
C)Desk Checking
D)Spot Checking
E)None of the above
سؤال
This step will uncover any syntax errors in your program.

A)Editing
B)Compiling
C)Linking
D)Executing
E)None of these
سؤال
________ are used to translate each source code instruction into the appropriate machine language instruction.

A)Modules
B)Library routines
C)Compilers
D)Preprocessor directives
E)None of the above
سؤال
The purpose of a memory address is:

A)To identify the location of a byte in memory
B)To prevent multitasking
C)To obtain an algorithm
D)To improve the effectiveness of high-level languages
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
سؤال
The ________ decodes an instruction and generates electrical signals.

A)Arithmetic and Logic Unit
B)Main memory
C)BIOS
D)Control Unit
E)None of the above
سؤال
This is used in a program to mark the beginning or ending of a statement, or separate items in a list.

A)Separators
B)Punctuation
C)Operators
D)Key Words
E)None of the above
سؤال
At the heart of a computer is its central processing unit. The CPU's job is:

A)To fetch instructions
B)To carry out the operations commanded by the instructions
C)To produce some outcome or resultant information
D)All of the above
E)None of the above
سؤال
The statements written by the programmer are called:

A)Syntax
B)Object code
C)Source code
D)Runtime libraries
E)None of the above
سؤال
A set of well-defined steps for performing a task or solving a problem is known as a(n):

A)Hierarchy
B)Algorithm
C)Central Processing Unit
D)Encoded instruction
E)None of the above
سؤال
A(n)________ is a set of instructions that the computer follows to solve a problem.

A)Compiler
B)Linker
C)Program
D)Operator
E)None of the above
سؤال
During which stage does the central processing unit analyze the instruction and encode it in the form of a number, and then generate an electronic signal?

A)fetch
B)decode
C)execute
D)portability stage
سؤال
The name for a memory location that may hold data is:

A)Key Word
B)Syntax
C)Operator
D)Variable
E)None of the above
سؤال
A(n)________ is the most fundamental set of programs on a computer.

A)compiler
B)operating system
C)application
D)utility program
E)None of these
سؤال
This is a volatile type of memory, used for temporary storage.

A)Address
B)ALU
C)RAM
D)Disk drive
E)None of the above
سؤال
A variable declaration announces the name of a variable that will be used in a program, as well as:

A)The type of data it will be used to hold
B)The operators that will be used on it
C)The number of times it will be used in the program
D)The area of the code in which it will be used
E)None of the above
سؤال
In the process of translating a source file into an executable file, which of the following is the correct sequence?

A)Source code, preprocessor, modified source code, linker, object code, compiler, executable code.
B)Preprocessor, source code, compiler, executable code, linker, modified source code, object code.
C)Source code, compiler, modified source code, preprocessor, object code, linker, executable code.
D)Source code, preprocessor, modified source code, compiler, object code, linker, executable code.
E)Source code, linker, object code, compiler, modified source code, preprocessor, executable code.
سؤال
Which of the following is a preprocessor directive?

A)pay = hours * rate;
B)cin >> rate;
C)// This program calculates the user's pay.
D)int main()
E)#include
سؤال
Words that have a special meaning and may be used only for their intended purpose are known as:

A)Operators
B)Programmer Defined Words
C)Key Words
D)Syntax
E)None of the above
سؤال
This is a set of rules that must be followed when constructing a program.

A)Syntax
B)Punctuation
C)Portability
D)Operators
E)Key words
سؤال
Which of the following is a common input device?

A)Keyboard
B)Mouse
C)Scanner
D)Microphone
E)All of the above
سؤال
Three primary activities of a program are:

A)Variables, Operators, and Key Words
B)Lines, Statements, and Punctuation
C)Input, Processing, and Output
D)Integer, Floating-point and Character
E)None of the above
سؤال
This is a complete instruction that causes the computer to perform some action.

A)Line
B)Statement
C)Variable
D)Key Word
E)None of the above
سؤال
A(n)________ is a diagram that shows the logical flow of a program.

A)UML diagram
B)flowchart
C)hierarchy chart
D)program schematic
E)None of these
سؤال
Which of the following is not one of the five major components of a computer system?

A)Preprocessor
B)The CPU (central processing unit)
C)Main memory
D)Input/Output device
E)Secondary storage device
سؤال
The programmer usually enters source code into a computer using:

A)Pseudocode
B)A text editor
C)A hierarchy chart
D)A compiler
E)None of the above
سؤال
Even when there is no power to the computer, data can be held in:

A)Secondary storage
B)The Input Device
C)The Output Device
D)The Algorithm
E)None of the above
سؤال
In a broad sense, the two primary categories of programming languages are:

A)Mainframe and PC
B)Hardware and Software
C)Low-level and High-level
D)COBOL and BASIC
E)None of the above
سؤال
Mistakes that cause a running program to produce incorrect results are called:

A)Syntax errors
B)Logic errors
C)Compiler errors
D)Linker errors
E)None of the above
سؤال
Computer programs are also known as:

A)hardware
B)firmware
C)software
D)silverware
E)None of the above
سؤال
An example of a secondary storage device is:

A)The computer's main memory
B)The keyboard
C)The monitor
D)The disk drive
E)None of the above
سؤال
Software engineering is a field that encompasses designing, writing, testing, debugging, documenting, modifying, and maintaining computer programs.
سؤال
Machine language is an example of a high-level language.
سؤال
The term "bit" stands for binary digit.
سؤال
Programs are commonly referred to as hardware.
سؤال
The preprocessor executes after the compiler.
سؤال
In C++, key words are written in all lowercase letters.
سؤال
A CPU really only understands instructions that are written in machine language.
سؤال
Pseudocode is a form of program statement that will always evaluate to "false."
سؤال
In programming, the terms "line" and "statement" always mean the same thing.
سؤال
The CPU is the most important component in a computer because without it, the computer could not run software.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/50
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 1: Introduction to Computers and Programming
1
What does the term hardware refer to?

A)The relative difficulty of programming
B)The physical components that a computer is made of
C)The way a computer's storage space is organized
D)The logical flow of instructions
E)None of the above.
The physical components that a computer is made of
2
The computer's main memory is commonly known as:

A)The hard disk
B)The floppy disk
C)RAM
D)Secondary storage
E)None of the above
RAM
3
Which of the following best describes an operator?

A)An operator is a rule that must be followed when constructing a program.
B)An operator allows you to perform operations on one or more pieces of data.
C)An operator marks the beginning or ending of a statement, or is used to separate items in a list.
D)An operator is a word that has a special meaning.
E)An operator is a symbolic name that refers to a variable.
An operator allows you to perform operations on one or more pieces of data.
4
Programmer-defined names of memory locations that may hold data are:

A)Operators
B)Variables
C)Syntax
D)Operands
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
5
During which stage does the central processing unit retrieve from main memory the next instruction in the sequence of program instructions?

A)fetch
B)decode
C)execute
D)portability stage
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
6
An Integrated Development Environment typically consists of:

A)A text editor
B)A compiler
C)A debugger
D)All of the above
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
7
What statement best describes a variable and its primary purpose?

A)A variable is a structured, general-purpose language designed primarily for teaching programming.
B)A variable is a collection of eight bits.
C)A variable is a word that has a special meaning to the compiler.
D)A variable is a named storage location in the computer's memory used for holding a piece of information.
E)A variable is a "line" of code in the body of a program, which may change.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
8
The programming process consists of several steps, which include:

A)Input, Processing, and Output
B)Key Words, Operators, and Punctuation
C)Design, Creation, Testing, and Debugging
D)Syntax, Logic, and Error Handling
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
9
Internally, the CPU consists of two parts:

A)The Output Device and the Input Device
B)The Software and the Hardware
C)The Control Unit and the Arithmetic and Logic Unit
D)The Single-task Device and the Multi-task Device
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
10
This term refers to the programmer reading the program from the beginning and stepping through each statement.

A)Pseudocoding
B)Software Engineering
C)Desk Checking
D)Spot Checking
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
11
This step will uncover any syntax errors in your program.

A)Editing
B)Compiling
C)Linking
D)Executing
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
12
________ are used to translate each source code instruction into the appropriate machine language instruction.

A)Modules
B)Library routines
C)Compilers
D)Preprocessor directives
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
13
The purpose of a memory address is:

A)To identify the location of a byte in memory
B)To prevent multitasking
C)To obtain an algorithm
D)To improve the effectiveness of high-level languages
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
14
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
15
The ________ decodes an instruction and generates electrical signals.

A)Arithmetic and Logic Unit
B)Main memory
C)BIOS
D)Control Unit
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
16
This is used in a program to mark the beginning or ending of a statement, or separate items in a list.

A)Separators
B)Punctuation
C)Operators
D)Key Words
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
17
At the heart of a computer is its central processing unit. The CPU's job is:

A)To fetch instructions
B)To carry out the operations commanded by the instructions
C)To produce some outcome or resultant information
D)All of the above
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
18
The statements written by the programmer are called:

A)Syntax
B)Object code
C)Source code
D)Runtime libraries
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
19
A set of well-defined steps for performing a task or solving a problem is known as a(n):

A)Hierarchy
B)Algorithm
C)Central Processing Unit
D)Encoded instruction
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
20
A(n)________ is a set of instructions that the computer follows to solve a problem.

A)Compiler
B)Linker
C)Program
D)Operator
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
21
During which stage does the central processing unit analyze the instruction and encode it in the form of a number, and then generate an electronic signal?

A)fetch
B)decode
C)execute
D)portability stage
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
22
The name for a memory location that may hold data is:

A)Key Word
B)Syntax
C)Operator
D)Variable
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
23
A(n)________ is the most fundamental set of programs on a computer.

A)compiler
B)operating system
C)application
D)utility program
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
24
This is a volatile type of memory, used for temporary storage.

A)Address
B)ALU
C)RAM
D)Disk drive
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
25
A variable declaration announces the name of a variable that will be used in a program, as well as:

A)The type of data it will be used to hold
B)The operators that will be used on it
C)The number of times it will be used in the program
D)The area of the code in which it will be used
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
26
In the process of translating a source file into an executable file, which of the following is the correct sequence?

A)Source code, preprocessor, modified source code, linker, object code, compiler, executable code.
B)Preprocessor, source code, compiler, executable code, linker, modified source code, object code.
C)Source code, compiler, modified source code, preprocessor, object code, linker, executable code.
D)Source code, preprocessor, modified source code, compiler, object code, linker, executable code.
E)Source code, linker, object code, compiler, modified source code, preprocessor, executable code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
27
Which of the following is a preprocessor directive?

A)pay = hours * rate;
B)cin >> rate;
C)// This program calculates the user's pay.
D)int main()
E)#include
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
28
Words that have a special meaning and may be used only for their intended purpose are known as:

A)Operators
B)Programmer Defined Words
C)Key Words
D)Syntax
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
29
This is a set of rules that must be followed when constructing a program.

A)Syntax
B)Punctuation
C)Portability
D)Operators
E)Key words
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
30
Which of the following is a common input device?

A)Keyboard
B)Mouse
C)Scanner
D)Microphone
E)All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
31
Three primary activities of a program are:

A)Variables, Operators, and Key Words
B)Lines, Statements, and Punctuation
C)Input, Processing, and Output
D)Integer, Floating-point and Character
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
32
This is a complete instruction that causes the computer to perform some action.

A)Line
B)Statement
C)Variable
D)Key Word
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
33
A(n)________ is a diagram that shows the logical flow of a program.

A)UML diagram
B)flowchart
C)hierarchy chart
D)program schematic
E)None of these
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
34
Which of the following is not one of the five major components of a computer system?

A)Preprocessor
B)The CPU (central processing unit)
C)Main memory
D)Input/Output device
E)Secondary storage device
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
35
The programmer usually enters source code into a computer using:

A)Pseudocode
B)A text editor
C)A hierarchy chart
D)A compiler
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
36
Even when there is no power to the computer, data can be held in:

A)Secondary storage
B)The Input Device
C)The Output Device
D)The Algorithm
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
37
In a broad sense, the two primary categories of programming languages are:

A)Mainframe and PC
B)Hardware and Software
C)Low-level and High-level
D)COBOL and BASIC
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
38
Mistakes that cause a running program to produce incorrect results are called:

A)Syntax errors
B)Logic errors
C)Compiler errors
D)Linker errors
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
39
Computer programs are also known as:

A)hardware
B)firmware
C)software
D)silverware
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
40
An example of a secondary storage device is:

A)The computer's main memory
B)The keyboard
C)The monitor
D)The disk drive
E)None of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
41
Software engineering is a field that encompasses designing, writing, testing, debugging, documenting, modifying, and maintaining computer programs.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
42
Machine language is an example of a high-level language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
43
The term "bit" stands for binary digit.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
44
Programs are commonly referred to as hardware.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
45
The preprocessor executes after the compiler.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
46
In C++, key words are written in all lowercase letters.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
47
A CPU really only understands instructions that are written in machine language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
48
Pseudocode is a form of program statement that will always evaluate to "false."
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
49
In programming, the terms "line" and "statement" always mean the same thing.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
50
The CPU is the most important component in a computer because without it, the computer could not run software.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 50 في هذه المجموعة.