Deck 1: A First Program Using C

Full screen (f)
exit full mode
Question
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
Use Space or
up arrow
down arrow
to flip the card.
Question
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
Question
A(n) ____ describes potential objects.

A) instance
B) class
C) attribute
D) state
Question
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
Question
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
Question
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
Question
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
Question
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
Question
____ provides the ability to extend a class so as to create a more specific class.

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

A) Literal strings
B) Primitive data
C) Arguments
D) Complex data
Question
____ 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
Question
Programmers sometimes refer to encapsulation as using a ____.

A) white box
B) black box
C) gray box
D) blue box
Question
C# programmers must use Pascal casing when creating method names to produce an executable program.
Question
The C# programming language was developed as an object-oriented and component-oriented language.
Question
The Visual Studio IDE gives you advanced features such as syntax coloring and automatic statement completion.
Question
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
Question
Machine language is expressed as a series of 1s and 0s.
Question
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
Question
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
Question
When the keyword void is used in the Main() method header, it indicates that the Main() method is empty.
Question
____________________ describes the ability to create methods that act appropriately depending on the context.
Question
What are the components of a C# method?
Question
void and static are examples of C# predefined ____.

A) classes
B) attributes
C) objects
D) keywords
Question
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
Question
After you write and save a program, you must ____ it into intermediate language.

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

A) Aliases
B) Program comments
C) Namespaces
D) Whitespaces
Question
Explain the main characteristics of inheritance.
Question
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
Question
Named computer memory locations are called ____________________ because they hold values that might vary.
Question
How would you compare C# with Java?
Question
The ____ method displays output on the screen and positions the cursor on the next line.

A) Write()
B) Println()
C) PrintLine()
D) WriteLine()
Question
What are the requirements when choosing an identifier for a C# class?
Question
What are the features supported by object-oriented programming?
Question
What are the attributes and state of an object?
Question
When programmers do not capitalize the first letter of an identifier but do capitalize each new word, they call the style ____________________.
Question
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
Question
What are the types of comments supported by C#?
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/42
auto play flashcards
Play
simple tutorial
Full screen (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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
12
Programmers sometimes refer to encapsulation as using a ____.

A) white box
B) black box
C) gray box
D) blue box
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
13
C# programmers must use Pascal casing when creating method names to produce an executable program.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
14
The C# programming language was developed as an object-oriented and component-oriented language.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
15
The Visual Studio IDE gives you advanced features such as syntax coloring and automatic statement completion.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
17
Machine language is expressed as a series of 1s and 0s.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
20
When the keyword void is used in the Main() method header, it indicates that the Main() method is empty.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
21
____________________ describes the ability to create methods that act appropriately depending on the context.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
22
What are the components of a C# method?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
23
void and static are examples of C# predefined ____.

A) classes
B) attributes
C) objects
D) keywords
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
26
Explain the concept of methods in object-oriented programming.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
27
Explain the main characteristics of encapsulation.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
28
A computer ____________________ is a set of instructions that you write to tell a computer what to do.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
29
The ____________________ of an object are the features it "has."
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
30
What is the meaning of the keyword static in C# in a method header?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
31
____ are nonexecuting statements that you add to document a program.

A) Aliases
B) Program comments
C) Namespaces
D) Whitespaces
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
32
Explain the main characteristics of inheritance.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
34
Named computer memory locations are called ____________________ because they hold values that might vary.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
35
How would you compare C# with Java?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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()
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
37
What are the requirements when choosing an identifier for a C# class?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
38
What are the features supported by object-oriented programming?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
39
What are the attributes and state of an object?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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 ____________________.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
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
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
42
What are the types of comments supported by C#?
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 42 flashcards in this deck.