Looks like no one added any tags here yet for you.
arr.GetLength(0);
Suppose you have a two-dimensional array named arr. How are you going to get the length of its rows?
structure
It is a fundamental concept in the C# programming language that allow you to define and manipulate composite data types.
Base Case
This refers to the "stopping case" and the simplest way of the problem that can be directly solved
Escape Sequences
These are used for characters that cannot be printed using the normal way of printing
c. these are methods used to MODIFY the values of private data members of a class from outside the class
What is the purpose of setters?
a. these are methods used to ACCESS the values of private data members of a class from outside the class
b. these are special methods, but does not return a value
c. these are methods used to MODIFY the values of private data members of a class from outside the class
d. all of these
internal
Members with this access modifier are visible to the subclass and any class within the same assembly
d. Use the abstract keyword before the class keyword.
How do we define abstract classes in C#?
a. Use the abstract keyword after the class keyword.
b. Use the abstract-class keyword after the class keyword.
c. Use the abstract-class keyword before the class keyword.
d. Use the abstract keyword before the class keyword.
Microsoft
Who developed C#?
a. represent the state or characteristics of an object
d. defined within the class and store the object's data
Which of the following defines a field?
a. represent the state or characteristics of an object
b. define the behavior of the objects
c. allow you to perform actions or calculations related to the state of the object
d. defined within the class and store the object's data
c. Can be instantiated independently without the need for subclasses.
d. Can be directly instantiated using the new keyword.
e. Contains concrete implementations for all its methods.
Which of the following describes a concrete class?
a. Exists to serve as a blueprint for other classes.
b. Subclasses must implement all abstract methods.
c. Can be instantiated independently without the need for subclasses.
d. Can be directly instantiated using the new keyword.
e. Contains concrete implementations for all its methods.
f. May contain both abstract and concrete methods.
c. to inherit from a base class
What is the purpose of the : keyword?
a. create an instance of the derived class
b. create an object
c. to inherit from a base class
d. to encapsulate data members
do-while
This iterative structure ensures that the statement will be executed once.
Method Overriding
This occurs when a subclass provides a specific implementation for a method that is already defined in its superclass
break
This statement is used to prematurely terminate the loop
void
Which keyword is used if the function does not require to return a value?
{2:C}
Write the format specifier for the third argument, in currency format.
Polymorphism
This OOP principle allows objects of different classes to be treated as objects of a common base class or interface during runtime.
Functions
They are used to encapsulate the set of tasks in a single unit, ensuring the DRY principle.
ref
This keyword is used in passing by reference
index
they refer to the array's addresses/location, and are used to access its elements.
return
this keyword is used to exit a method, providing a value to the caller
{ and }
the function definition is placed inside these characters
member variables
These are places inside the curly braces when defining a structure
arr.GetLength(0);
Suppose you have a two-dimensional array named arr. How are you going to get the length of its rows?
main method
This contains the main logic of the program
structures
these are complex data types that contains multiple data members with various types.
sample:
Rectangle rectangle1 = new Rectangle {Width = 10, Height = 5};
Suppose you created a structure named Rectangle, with integer data members such as Width and Height. How are you going to create an instance of it, initializing 10 and 5 for the value of width and height, respectively?
ref
This keyword is used in passing by reference
Console.Writeline()
This keyword is used in displaying a string literal, or any value in the console
Recursive Functions
These are functions that repeatedly call themselves, and changing the input values
Escape Sequences
These are used for characters that cannot be printed using the normal way of printing
Function Call
This is done by specifying its name and passing the arguments if required
while loop
This iterative structure evaluates the condition before each iteration of the loop
Pass by Reference
This allows methods to modify the original values of the actual parameters directly
dot(.) operator
This operator is used to access the members of a structure
{2:C}
Write the format specifier for the third argument, in currency format
Base Case
This refers to the "stopping case" and the simplest way of the problem that can be directly solved
void
This keyword is used if the method does not have a return type
arr[3,2] = 25;
How will you assign the value 25 to an array named arr, on the fourth row index and third column index?
MidtermPassedCutie
Identify the output of the given codes in each item. Please remember, they are case-sensitive
2.000
Identify the output of the given codes in each item. Please remember, they are case-sensitive
Jerome is a 4th year student.
Identify the output of the given codes in each item. Please remember, they are case-sensitive
Artist
Which of the following is the base class? Write only the class name.
Painter
Which of the following is the derived class? Write only the class name
Fatima
Identify the output of the given codes in each item. Please remember, they are case-sensitive
7 14 210 28 35
Identify the output of the given codes in each item. Please remember, they are case-sensitive
Minimum value: 8
Identify the output of the given codes in each item. Please remember, they are case-sensitive
16
What will be the value of min if i is 2?