Deck 1: A First Program Using C

ملء الشاشة (f)
exit full mode
سؤال
In programming languages, a variable is referenced by using a one-word name, which is called a(n) ____, with no embedded spaces.

A) behavior
B) bug
C) identifier
D) attribute
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
When you write a(n) ____ program, you use your knowledge of a programming language to create and name computer memory locations that can hold values, and you write a series of steps or operations to manipulate those values.

A) object-oriented
B) component-oriented
C) event-driven
D) procedural
سؤال
A(n) ____ describes potential objects.

A) instance
B) class
C) attribute
D) state
سؤال
To achieve a working program that accomplishes the tasks it is meant to accomplish, you must remove all syntax and logical errors from the program. This process is called ____ the program.

A) debugging
B) compiling
C) commenting out
D) executing
سؤال
A ____ programming language allows you to use a vocabulary of reasonable terms such as "read," "write," or "add" instead of the sequence of on/off switches that perform these tasks.

A) high-level
B) machine-level
C) low-level
D) switch-level
سؤال
For convenience, the individual operations used in a computer program often are grouped into logical units called ____.

A) attributes
B) methods
C) classes
D) structures
سؤال
Programmers use a computer program called a(n) ____ to translate their high-level language statements into machine code.

A) prompt
B) IDE
C) compiler
D) JIT
سؤال
The ____ behind any program involves executing the various statements and procedures in the correct order to produce the desired results.

A) GUI
B) attributes
C) methods
D) logic
سؤال
____ provides the ability to extend a class so as to create a more specific class.

A) Inheritance
B) Encapsulation
C) Polymorphism
D) Abstraction
سؤال
____ represent(s) information that a method needs to perform its task.

A) Literal strings
B) Primitive data
C) Arguments
D) Complex data
سؤال
____ is the technique of packaging an object's attributes and methods into a cohesive unit that can be used as an undivided entity.

A) Encapsulation
B) Polymorphism
C) Inheritance
D) Interface
سؤال
Programmers sometimes refer to encapsulation as using a ____.

A) white box
B) black box
C) gray box
D) blue box
سؤال
C# programmers must use Pascal casing when creating method names to produce an executable program.
سؤال
The C# programming language was developed as an object-oriented and component-oriented language.
سؤال
The Visual Studio IDE gives you advanced features such as syntax coloring and automatic statement completion.
سؤال
A class describes the attributes and methods of every object that is a(n) ____, or example, of that class.

A) property
B) interface
C) instance
D) state
سؤال
Machine language is expressed as a series of 1s and 0s.
سؤال
When programmers adopt the style of capitalizing the first letter of all new words in an identifier, even the first one, they call the style ____.

A) camel casing
B) upper casing
C) OOP casing
D) Pascal casing
سؤال
Internally, computers are constructed from circuitry that consists of small on/off switches. The most basic circuitry-level language that computers use to control the operation of those switches is called ____.

A) syntax
B) machine language
C) compiler
D) program
سؤال
When the keyword void is used in the Main() method header, it indicates that the Main() method is empty.
سؤال
____________________ describes the ability to create methods that act appropriately depending on the context.
سؤال
What are the components of a C# method?
سؤال
void and static are examples of C# predefined ____.

A) classes
B) attributes
C) objects
D) keywords
سؤال
A method ____ includes the method name and information about what will pass into and be returned from a method.

A) body
B) keyword
C) class
D) header
سؤال
After you write and save a program, you must ____ it into intermediate language.

A) interpret
B) compile
C) comment
D) reduce
سؤال
Explain the concept of methods in object-oriented programming.
سؤال
Explain the main characteristics of encapsulation.
سؤال
A computer ____________________ is a set of instructions that you write to tell a computer what to do.
سؤال
The ____________________ of an object are the features it "has."
سؤال
What is the meaning of the keyword static in C# in a method header?
سؤال
____ are nonexecuting statements that you add to document a program.

A) Aliases
B) Program comments
C) Namespaces
D) Whitespaces
سؤال
Explain the main characteristics of inheritance.
سؤال
A(n) ____ is a construct that acts like a container to provide a way to group similar classes.

A) namespace
B) method
C) object
D) black box
سؤال
Named computer memory locations are called ____________________ because they hold values that might vary.
سؤال
How would you compare C# with Java?
سؤال
The ____ method displays output on the screen and positions the cursor on the next line.

A) Write()
B) Println()
C) PrintLine()
D) WriteLine()
سؤال
What are the requirements when choosing an identifier for a C# class?
سؤال
What are the features supported by object-oriented programming?
سؤال
What are the attributes and state of an object?
سؤال
When programmers do not capitalize the first letter of an identifier but do capitalize each new word, they call the style ____________________.
سؤال
Match between columns
The value of an object's attributes at any point in time
logical error
The value of an object's attributes at any point in time
inheritance
The value of an object's attributes at any point in time
syntax
The value of an object's attributes at any point in time
interface
The value of an object's attributes at any point in time
whitespace
The value of an object's attributes at any point in time
command prompt
The value of an object's attributes at any point in time
state of an object
The value of an object's attributes at any point in time
literal string
The value of an object's attributes at any point in time
command line
A request for input that appears at the beginning of the command line
logical error
A request for input that appears at the beginning of the command line
inheritance
A request for input that appears at the beginning of the command line
syntax
A request for input that appears at the beginning of the command line
interface
A request for input that appears at the beginning of the command line
whitespace
A request for input that appears at the beginning of the command line
command prompt
A request for input that appears at the beginning of the command line
state of an object
A request for input that appears at the beginning of the command line
literal string
A request for input that appears at the beginning of the command line
command line
Adding when you should be multiplying
logical error
Adding when you should be multiplying
inheritance
Adding when you should be multiplying
syntax
Adding when you should be multiplying
interface
Adding when you should be multiplying
whitespace
Adding when you should be multiplying
command prompt
Adding when you should be multiplying
state of an object
Adding when you should be multiplying
literal string
Adding when you should be multiplying
command line
The line on which you type a command in a system that uses a text interface
logical error
The line on which you type a command in a system that uses a text interface
inheritance
The line on which you type a command in a system that uses a text interface
syntax
The line on which you type a command in a system that uses a text interface
interface
The line on which you type a command in a system that uses a text interface
whitespace
The line on which you type a command in a system that uses a text interface
command prompt
The line on which you type a command in a system that uses a text interface
state of an object
The line on which you type a command in a system that uses a text interface
literal string
The line on which you type a command in a system that uses a text interface
command line
Any combination of spaces, tabs, and carriage returns (blank lines)
logical error
Any combination of spaces, tabs, and carriage returns (blank lines)
inheritance
Any combination of spaces, tabs, and carriage returns (blank lines)
syntax
Any combination of spaces, tabs, and carriage returns (blank lines)
interface
Any combination of spaces, tabs, and carriage returns (blank lines)
whitespace
Any combination of spaces, tabs, and carriage returns (blank lines)
command prompt
Any combination of spaces, tabs, and carriage returns (blank lines)
state of an object
Any combination of spaces, tabs, and carriage returns (blank lines)
literal string
Any combination of spaces, tabs, and carriage returns (blank lines)
command line
The description of interaction between a method and an object
logical error
The description of interaction between a method and an object
inheritance
The description of interaction between a method and an object
syntax
The description of interaction between a method and an object
interface
The description of interaction between a method and an object
whitespace
The description of interaction between a method and an object
command prompt
The description of interaction between a method and an object
state of an object
The description of interaction between a method and an object
literal string
The description of interaction between a method and an object
command line
A series of characters that will be used exactly as entered
logical error
A series of characters that will be used exactly as entered
inheritance
A series of characters that will be used exactly as entered
syntax
A series of characters that will be used exactly as entered
interface
A series of characters that will be used exactly as entered
whitespace
A series of characters that will be used exactly as entered
command prompt
A series of characters that will be used exactly as entered
state of an object
A series of characters that will be used exactly as entered
literal string
A series of characters that will be used exactly as entered
command line
The rules of a high-level programming language
logical error
The rules of a high-level programming language
inheritance
The rules of a high-level programming language
syntax
The rules of a high-level programming language
interface
The rules of a high-level programming language
whitespace
The rules of a high-level programming language
command prompt
The rules of a high-level programming language
state of an object
The rules of a high-level programming language
literal string
The rules of a high-level programming language
command line
The ability to extend a class to create a more specific class
logical error
The ability to extend a class to create a more specific class
inheritance
The ability to extend a class to create a more specific class
syntax
The ability to extend a class to create a more specific class
interface
The ability to extend a class to create a more specific class
whitespace
The ability to extend a class to create a more specific class
command prompt
The ability to extend a class to create a more specific class
state of an object
The ability to extend a class to create a more specific class
literal string
The ability to extend a class to create a more specific class
command line
سؤال
What are the types of comments supported by C#?
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/42
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 1: A First Program Using C
1
In programming languages, a variable is referenced by using a one-word name, which is called a(n) ____, with no embedded spaces.

A) behavior
B) bug
C) identifier
D) attribute
C
2
When you write a(n) ____ program, you use your knowledge of a programming language to create and name computer memory locations that can hold values, and you write a series of steps or operations to manipulate those values.

A) object-oriented
B) component-oriented
C) event-driven
D) procedural
D
3
A(n) ____ describes potential objects.

A) instance
B) class
C) attribute
D) state
B
4
To achieve a working program that accomplishes the tasks it is meant to accomplish, you must remove all syntax and logical errors from the program. This process is called ____ the program.

A) debugging
B) compiling
C) commenting out
D) executing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
5
A ____ programming language allows you to use a vocabulary of reasonable terms such as "read," "write," or "add" instead of the sequence of on/off switches that perform these tasks.

A) high-level
B) machine-level
C) low-level
D) switch-level
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
6
For convenience, the individual operations used in a computer program often are grouped into logical units called ____.

A) attributes
B) methods
C) classes
D) structures
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
7
Programmers use a computer program called a(n) ____ to translate their high-level language statements into machine code.

A) prompt
B) IDE
C) compiler
D) JIT
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
8
The ____ behind any program involves executing the various statements and procedures in the correct order to produce the desired results.

A) GUI
B) attributes
C) methods
D) logic
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
9
____ provides the ability to extend a class so as to create a more specific class.

A) Inheritance
B) Encapsulation
C) Polymorphism
D) Abstraction
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
10
____ represent(s) information that a method needs to perform its task.

A) Literal strings
B) Primitive data
C) Arguments
D) Complex data
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
11
____ is the technique of packaging an object's attributes and methods into a cohesive unit that can be used as an undivided entity.

A) Encapsulation
B) Polymorphism
C) Inheritance
D) Interface
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
12
Programmers sometimes refer to encapsulation as using a ____.

A) white box
B) black box
C) gray box
D) blue box
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
13
C# programmers must use Pascal casing when creating method names to produce an executable program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
14
The C# programming language was developed as an object-oriented and component-oriented language.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
15
The Visual Studio IDE gives you advanced features such as syntax coloring and automatic statement completion.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
16
A class describes the attributes and methods of every object that is a(n) ____, or example, of that class.

A) property
B) interface
C) instance
D) state
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
17
Machine language is expressed as a series of 1s and 0s.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
18
When programmers adopt the style of capitalizing the first letter of all new words in an identifier, even the first one, they call the style ____.

A) camel casing
B) upper casing
C) OOP casing
D) Pascal casing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
19
Internally, computers are constructed from circuitry that consists of small on/off switches. The most basic circuitry-level language that computers use to control the operation of those switches is called ____.

A) syntax
B) machine language
C) compiler
D) program
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
20
When the keyword void is used in the Main() method header, it indicates that the Main() method is empty.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
21
____________________ describes the ability to create methods that act appropriately depending on the context.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
22
What are the components of a C# method?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
23
void and static are examples of C# predefined ____.

A) classes
B) attributes
C) objects
D) keywords
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
24
A method ____ includes the method name and information about what will pass into and be returned from a method.

A) body
B) keyword
C) class
D) header
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
25
After you write and save a program, you must ____ it into intermediate language.

A) interpret
B) compile
C) comment
D) reduce
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
26
Explain the concept of methods in object-oriented programming.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
27
Explain the main characteristics of encapsulation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
28
A computer ____________________ is a set of instructions that you write to tell a computer what to do.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
29
The ____________________ of an object are the features it "has."
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
30
What is the meaning of the keyword static in C# in a method header?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
31
____ are nonexecuting statements that you add to document a program.

A) Aliases
B) Program comments
C) Namespaces
D) Whitespaces
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
32
Explain the main characteristics of inheritance.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
33
A(n) ____ is a construct that acts like a container to provide a way to group similar classes.

A) namespace
B) method
C) object
D) black box
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
34
Named computer memory locations are called ____________________ because they hold values that might vary.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
35
How would you compare C# with Java?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
36
The ____ method displays output on the screen and positions the cursor on the next line.

A) Write()
B) Println()
C) PrintLine()
D) WriteLine()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
37
What are the requirements when choosing an identifier for a C# class?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
38
What are the features supported by object-oriented programming?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
39
What are the attributes and state of an object?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
40
When programmers do not capitalize the first letter of an identifier but do capitalize each new word, they call the style ____________________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
41
Match between columns
The value of an object's attributes at any point in time
logical error
The value of an object's attributes at any point in time
inheritance
The value of an object's attributes at any point in time
syntax
The value of an object's attributes at any point in time
interface
The value of an object's attributes at any point in time
whitespace
The value of an object's attributes at any point in time
command prompt
The value of an object's attributes at any point in time
state of an object
The value of an object's attributes at any point in time
literal string
The value of an object's attributes at any point in time
command line
A request for input that appears at the beginning of the command line
logical error
A request for input that appears at the beginning of the command line
inheritance
A request for input that appears at the beginning of the command line
syntax
A request for input that appears at the beginning of the command line
interface
A request for input that appears at the beginning of the command line
whitespace
A request for input that appears at the beginning of the command line
command prompt
A request for input that appears at the beginning of the command line
state of an object
A request for input that appears at the beginning of the command line
literal string
A request for input that appears at the beginning of the command line
command line
Adding when you should be multiplying
logical error
Adding when you should be multiplying
inheritance
Adding when you should be multiplying
syntax
Adding when you should be multiplying
interface
Adding when you should be multiplying
whitespace
Adding when you should be multiplying
command prompt
Adding when you should be multiplying
state of an object
Adding when you should be multiplying
literal string
Adding when you should be multiplying
command line
The line on which you type a command in a system that uses a text interface
logical error
The line on which you type a command in a system that uses a text interface
inheritance
The line on which you type a command in a system that uses a text interface
syntax
The line on which you type a command in a system that uses a text interface
interface
The line on which you type a command in a system that uses a text interface
whitespace
The line on which you type a command in a system that uses a text interface
command prompt
The line on which you type a command in a system that uses a text interface
state of an object
The line on which you type a command in a system that uses a text interface
literal string
The line on which you type a command in a system that uses a text interface
command line
Any combination of spaces, tabs, and carriage returns (blank lines)
logical error
Any combination of spaces, tabs, and carriage returns (blank lines)
inheritance
Any combination of spaces, tabs, and carriage returns (blank lines)
syntax
Any combination of spaces, tabs, and carriage returns (blank lines)
interface
Any combination of spaces, tabs, and carriage returns (blank lines)
whitespace
Any combination of spaces, tabs, and carriage returns (blank lines)
command prompt
Any combination of spaces, tabs, and carriage returns (blank lines)
state of an object
Any combination of spaces, tabs, and carriage returns (blank lines)
literal string
Any combination of spaces, tabs, and carriage returns (blank lines)
command line
The description of interaction between a method and an object
logical error
The description of interaction between a method and an object
inheritance
The description of interaction between a method and an object
syntax
The description of interaction between a method and an object
interface
The description of interaction between a method and an object
whitespace
The description of interaction between a method and an object
command prompt
The description of interaction between a method and an object
state of an object
The description of interaction between a method and an object
literal string
The description of interaction between a method and an object
command line
A series of characters that will be used exactly as entered
logical error
A series of characters that will be used exactly as entered
inheritance
A series of characters that will be used exactly as entered
syntax
A series of characters that will be used exactly as entered
interface
A series of characters that will be used exactly as entered
whitespace
A series of characters that will be used exactly as entered
command prompt
A series of characters that will be used exactly as entered
state of an object
A series of characters that will be used exactly as entered
literal string
A series of characters that will be used exactly as entered
command line
The rules of a high-level programming language
logical error
The rules of a high-level programming language
inheritance
The rules of a high-level programming language
syntax
The rules of a high-level programming language
interface
The rules of a high-level programming language
whitespace
The rules of a high-level programming language
command prompt
The rules of a high-level programming language
state of an object
The rules of a high-level programming language
literal string
The rules of a high-level programming language
command line
The ability to extend a class to create a more specific class
logical error
The ability to extend a class to create a more specific class
inheritance
The ability to extend a class to create a more specific class
syntax
The ability to extend a class to create a more specific class
interface
The ability to extend a class to create a more specific class
whitespace
The ability to extend a class to create a more specific class
command prompt
The ability to extend a class to create a more specific class
state of an object
The ability to extend a class to create a more specific class
literal string
The ability to extend a class to create a more specific class
command line
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
42
What are the types of comments supported by C#?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.