Deck 1: A First Program Using C#

Full screen (f)
exit full mode
Question
The program you are creating must output information onto the screen, and then position the cursor on the next line in preparation for additional output.What method should you use?

A) Write()
B) Println()
C) Main()
D) WriteLine()
Use Space or
up arrow
down arrow
to flip the card.
Question
Programmers make use of what type of program in order to translate higher-level language statements into machine code?

A) a command prompt
B) an IDE
C) a compiler
D) a JIT
Question
Internally, computers are constructed from circuitry that consists of small on/off switches.What is the most basic circuitry-level language that computers use to control the operation of those switches called?

A) syntax
B) machine language
C) compiler
D) program
Question
The C# programming language was developed as an object-oriented and component-oriented language.
Question
What technique involves the packaging of 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
The Visual Studio IDE gives you advanced features such as syntax coloring and automatic statement completion.
Question
What information must be supplied when utilizing a method that requires additional information in order to operate?

A) literal strings
B) primitive data
C) arguments
D) namespace
Question
What term describes a one-word name with no embedded spaces that references a variable in a program?

A) behavior
B) bug
C) identifier
D) attribute
Question
What is the process of removing all syntax and logical errors from a program in order to create a working program that accomplishes all intended tasks known as?

A) debugging
B) compiling
C) commenting out
D) executing
Question
When the keyword void is used in the Main() method header, it indicates that the Main() method is empty.
Question
What type of program is created by the use of named memory locations and a series of steps or operations to manipulate the values of those memory locations?

A) object-oriented
B) component-oriented
C) variable-oriented
D) procedural
Question
Machine language is expressed as a series of 1s and 0s.
Question
Encapsulation is similar to using a device without regard for the internal mechanisms.What is the common term for this type of device?

A) interface
B) black box
C) object
D) blue box
Question
What kind of 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
What programming style capitalizes the first letter of all new words in an identifier, including the first one?

A) camel casing
B) upper casing
C) OOP casing
D) Pascal casing
Question
What can be used to extend an existing class so as to create a more specific class?

A) inheritance
B) encapsulation
C) polymorphism
D) abstraction
Question
A series of four or five comparisons and calculations that together determine an employee's withholding tax value might be grouped using what sort of logical unit?

A) an attribute
B) a method
C) a class
D) a structure
Question
A program's execution of various statements and procedures in a correct order to produce desired results is referred to as what defining characteristic?

A) the program's GUI
B) the attributes utilized by the program
C) the methods of the program
D) the program's logic
Question
What is an object in relation to a defined class in a programming language?

A) It is a property of the class.
B) It is an interface to the class.
C) It is an instance of the class.
D) It defines the class state.
Question
C# programmers must use Pascal casing when creating method names to produce an executable program.
Question
Where can a method's name and information about what will be passed into the method and returned from it be found?

A) in the body of the method
B) in the method's keywords
C) in the method's class definitions
D) in the method's header
Question
What statement regarding the C# programming language is accurate?

A) The C# programming language was developed as a procedural language.
B) C# only allows specific pieces of data to be treated as objects.
C) C# provides constructs for creating components with properties, methods, and events.
D) C# is modeled after the COBOL programming language.
Question
An identifier that is prefixed with an @ and allows you to use code written in other languages that do not have the same set of reserved keywords is known by what name?

A) a language identifier
B) a verbatim identifier
C) a translating identifier
D) a commenting identifier
Question
How would you compare C# with Java?
Question
What can be used as 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
Explain the main characteristics of inheritance.
Question
What is of the following NOT a keyword by the C# language?

A) implicit
B) catch
C) static
D) global
Question
Explain the main characteristics of encapsulation.
Question
What are the types of comments supported by C#?
Question
What are the components of a C# method?
Question
What must be done once a C# program has been finished before it can be used?

A) It must be fed to a runtime interpreter.
B) It must be compiled into intermediate language.
C) It must be stripped of all comments before it can run.
D) It must be compiled in both the command line and within the Integrated Development Environment.
Question
Explain the concept of methods in object-oriented programming.
Question
What are the requirements when choosing an identifier for a C# class?
Question
The use of void and static are both examples of what predefined C# language component?

A) classes
B) attributes
C) objects
D) keywords
Question
What is the meaning of the keyword static in C# in a method header?
Question
What command can be used from the Developer Command Prompt in order to compile a C# program?

A) c#-compile
B) csc
C) gcc-c#
D) csharpc
Question
When writing C# code, how do you indicate a namespace?

A) You must specify the namespace by using the namespace keyword, followed by the namespace.
B) You must use the declare namespace keywords, followed by the namespace.
C) You must utilize the using clause, or using directive, by specifying using, followed by the namespace.
D) You must use create a file called "namespace", and include all namespace code in this file.Then, the namespace can be used by name in your program.
Question
What are nonexecuting statements that you can use to document or add notes to assist in the use of the program?

A) verbatim identifier
B) program comments
C) namespaces
D) whitespaces
Question
What are the features supported by object-oriented programming?
Question
What are the attributes and state of an object?
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/40
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 1: A First Program Using C#
1
The program you are creating must output information onto the screen, and then position the cursor on the next line in preparation for additional output.What method should you use?

A) Write()
B) Println()
C) Main()
D) WriteLine()
D
2
Programmers make use of what type of program in order to translate higher-level language statements into machine code?

A) a command prompt
B) an IDE
C) a compiler
D) a JIT
C
3
Internally, computers are constructed from circuitry that consists of small on/off switches.What is the most basic circuitry-level language that computers use to control the operation of those switches called?

A) syntax
B) machine language
C) compiler
D) program
B
4
The C# programming language was developed as an object-oriented and component-oriented language.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
5
What technique involves the packaging of 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 40 flashcards in this deck.
Unlock Deck
k this deck
6
The Visual Studio IDE gives you advanced features such as syntax coloring and automatic statement completion.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
7
What information must be supplied when utilizing a method that requires additional information in order to operate?

A) literal strings
B) primitive data
C) arguments
D) namespace
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
8
What term describes a one-word name with no embedded spaces that references a variable in a program?

A) behavior
B) bug
C) identifier
D) attribute
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
9
What is the process of removing all syntax and logical errors from a program in order to create a working program that accomplishes all intended tasks known as?

A) debugging
B) compiling
C) commenting out
D) executing
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
10
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 40 flashcards in this deck.
Unlock Deck
k this deck
11
What type of program is created by the use of named memory locations and a series of steps or operations to manipulate the values of those memory locations?

A) object-oriented
B) component-oriented
C) variable-oriented
D) procedural
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
12
Machine language is expressed as a series of 1s and 0s.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
13
Encapsulation is similar to using a device without regard for the internal mechanisms.What is the common term for this type of device?

A) interface
B) black box
C) object
D) blue box
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
14
What kind of 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 40 flashcards in this deck.
Unlock Deck
k this deck
15
What programming style capitalizes the first letter of all new words in an identifier, including the first one?

A) camel casing
B) upper casing
C) OOP casing
D) Pascal casing
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
16
What can be used to extend an existing class so as to create a more specific class?

A) inheritance
B) encapsulation
C) polymorphism
D) abstraction
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
17
A series of four or five comparisons and calculations that together determine an employee's withholding tax value might be grouped using what sort of logical unit?

A) an attribute
B) a method
C) a class
D) a structure
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
18
A program's execution of various statements and procedures in a correct order to produce desired results is referred to as what defining characteristic?

A) the program's GUI
B) the attributes utilized by the program
C) the methods of the program
D) the program's logic
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
19
What is an object in relation to a defined class in a programming language?

A) It is a property of the class.
B) It is an interface to the class.
C) It is an instance of the class.
D) It defines the class state.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
20
C# programmers must use Pascal casing when creating method names to produce an executable program.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
21
Where can a method's name and information about what will be passed into the method and returned from it be found?

A) in the body of the method
B) in the method's keywords
C) in the method's class definitions
D) in the method's header
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
22
What statement regarding the C# programming language is accurate?

A) The C# programming language was developed as a procedural language.
B) C# only allows specific pieces of data to be treated as objects.
C) C# provides constructs for creating components with properties, methods, and events.
D) C# is modeled after the COBOL programming language.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
23
An identifier that is prefixed with an @ and allows you to use code written in other languages that do not have the same set of reserved keywords is known by what name?

A) a language identifier
B) a verbatim identifier
C) a translating identifier
D) a commenting identifier
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
24
How would you compare C# with Java?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
25
What can be used as 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 40 flashcards in this deck.
Unlock Deck
k this deck
26
Explain the main characteristics of inheritance.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
27
What is of the following NOT a keyword by the C# language?

A) implicit
B) catch
C) static
D) global
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
28
Explain the main characteristics of encapsulation.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
29
What are the types of comments supported by C#?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
30
What are the components of a C# method?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
31
What must be done once a C# program has been finished before it can be used?

A) It must be fed to a runtime interpreter.
B) It must be compiled into intermediate language.
C) It must be stripped of all comments before it can run.
D) It must be compiled in both the command line and within the Integrated Development Environment.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
32
Explain the concept of methods in object-oriented programming.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
33
What are the requirements when choosing an identifier for a C# class?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
34
The use of void and static are both examples of what predefined C# language component?

A) classes
B) attributes
C) objects
D) keywords
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
35
What is the meaning of the keyword static in C# in a method header?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
36
What command can be used from the Developer Command Prompt in order to compile a C# program?

A) c#-compile
B) csc
C) gcc-c#
D) csharpc
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
37
When writing C# code, how do you indicate a namespace?

A) You must specify the namespace by using the namespace keyword, followed by the namespace.
B) You must use the declare namespace keywords, followed by the namespace.
C) You must utilize the using clause, or using directive, by specifying using, followed by the namespace.
D) You must use create a file called "namespace", and include all namespace code in this file.Then, the namespace can be used by name in your program.
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
38
What are nonexecuting statements that you can use to document or add notes to assist in the use of the program?

A) verbatim identifier
B) program comments
C) namespaces
D) whitespaces
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
39
What are the features supported by object-oriented programming?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
40
What are the attributes and state of an object?
Unlock Deck
Unlock for access to all 40 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 40 flashcards in this deck.