Deck 1: A First Program Using C#

ملء الشاشة (f)
exit full mode
سؤال
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()
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
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
سؤال
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
سؤال
The C# programming language was developed as an object-oriented and component-oriented language.
سؤال
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
سؤال
The Visual Studio IDE gives you advanced features such as syntax coloring and automatic statement completion.
سؤال
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
سؤال
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
سؤال
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
سؤال
When the keyword void is used in the Main() method header, it indicates that the Main() method is empty.
سؤال
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
سؤال
Machine language is expressed as a series of 1s and 0s.
سؤال
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
سؤال
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
سؤال
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
سؤال
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
سؤال
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
سؤال
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
سؤال
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.
سؤال
C# programmers must use Pascal casing when creating method names to produce an executable program.
سؤال
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
سؤال
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.
سؤال
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
سؤال
How would you compare C# with Java?
سؤال
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
سؤال
Explain the main characteristics of inheritance.
سؤال
What is of the following NOT a keyword by the C# language?

A) implicit
B) catch
C) static
D) global
سؤال
Explain the main characteristics of encapsulation.
سؤال
What are the types of comments supported by C#?
سؤال
What are the components of a C# method?
سؤال
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.
سؤال
Explain the concept of methods in object-oriented programming.
سؤال
What are the requirements when choosing an identifier for a C# class?
سؤال
The use of void and static are both examples of what predefined C# language component?

A) classes
B) attributes
C) objects
D) keywords
سؤال
What is the meaning of the keyword static in C# in a method header?
سؤال
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
سؤال
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.
سؤال
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
سؤال
What are the features supported by object-oriented programming?
سؤال
What are the attributes and state of an object?
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/40
auto play flashcards
العب
simple tutorial
ملء الشاشة (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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
6
The Visual Studio IDE gives you advanced features such as syntax coloring and automatic statement completion.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
10
When the keyword void is used in the Main() method header, it indicates that the Main() method is empty.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
12
Machine language is expressed as a series of 1s and 0s.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
20
C# programmers must use Pascal casing when creating method names to produce an executable program.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
24
How would you compare C# with Java?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
26
Explain the main characteristics of inheritance.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
27
What is of the following NOT a keyword by the C# language?

A) implicit
B) catch
C) static
D) global
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
28
Explain the main characteristics of encapsulation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
29
What are the types of comments supported by C#?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
30
What are the components of a C# method?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
32
Explain the concept of methods in object-oriented programming.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
33
What are the requirements when choosing an identifier for a C# class?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
35
What is the meaning of the keyword static in C# in a method header?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
39
What are the features supported by object-oriented programming?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
40
What are the attributes and state of an object?
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.