stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Automation Academy - Quiz 1 Flashcards | StudBud
Explore
/
Automation Academy - Quiz 1
Automation Academy - Quiz 1
11 terms
·
StudBud Administration
·
8 plays
Imported from external platform
Flashcards
11 cards
F
Practice quiz
P
Host live
L
Questions
11
Answers
1
What does the `Length` method of an array do in C#?
Returns the data type of the array elements
Returns the allocated memory size of the array
Resizes the array
Returns the number of elements in the array
2
What is the purpose of marking a method as virtual in a C# class?
Allows derived classes to override the method with their own implementation
It prevents the method from being inherited
Allows the method to be hidden in derived classes
It makes the method private by default
3
What is a class constructor in C#?
A special method that initializes an object
A method that modifies class attributes
A method used to destroy an object
A method that returns an object
4
What is the correct way to declare an integer array in C#?
int myArray = int[5];
int myArray = new int[5];
int[] myArray = new int[5];
array int myArray = [5];
5
What is the .NET Framework?
An operating system
A set of libraries and tools for application development
A scripting language for Amdaris
A programming language
6
How do you call a method of an object in C#?
call method;
method.object();
object.method();
object.method[];
7
What is the mechanism called in C# that allows code reuse through inheritance between classes?
Composition
Polymorphism
Inheritance
Encapsulation
8
What is the purpose of the git clone command?
To switch branches
To remove a repository
To create a copy of an existing repository
To stage files for a commit
9
Which command is used in Git to commit changes?
git add
git push
git commit
git commit
10
What is C#?
An object-oriented programming language
A library for web applications
A database management system
A design framework
11
Which of these is a version control system?
SQL Server
Visual Studio
Git
JetBrains Rider