Deck 1: A First Program Using C
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Match between columns
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/42
Play
Full screen (f)
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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()
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
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