
C# and OOP Concepts
Authored by ammar al-qadasi
Information Technology (IT)
University
Used 7+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes C#?
A markup language
A low-level assembly language
A modern, object-oriented, type-safe programming language
A database query language
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements about C# is true?
C# runs directly on hardware
C# is compiled into Intermediate Language (IL) and runs on the .NET runtime
C# is interpreted line by line
C# is not platform-independent
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between value types and reference types in C#?
Value types store copies of data; reference types store memory addresses
Reference types are faster than value types
Value types are always strings
There is no difference
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a value type?
class
string
int
object
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to define a constant value that cannot change?
readonly
final
const
static
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which collection type maintains key-value pairs and does not allow duplicate keys?
ArrayList
Dictionary
Queue
List
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main difference between a Hashtable and a Dictionary in C#?
Hashtable is generic; Dictionary is not
Hashtable allows any type of key and value (non-generic); Dictionary is generic and type-safe
Dictionary allows duplicate keys
Hashtable is faster than Dictionary
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?