
Unit 3

Quiz
•
Other
•
University
•
Hard

Ntombi Ngcwangu
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following is a reference type in C#?
A) int
B) double
C) string
D) char
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following statements is true regarding implicit and explicit conversion in C#?
A) Implicit conversion requires a cast operator.
B) Explicit conversion occurs automatically by the compiler.
C) Implicit conversion may result in data loss.
D) Explicit conversion is also known as widening conversion.
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
What does null represent in programming languages?
D) A reserved keyword for method declarations
C) A reference to nothing or absence of a value
B) An undefined variable
A) A value representing an empty string
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following statements about arrays in C# is false?
A) Arrays can store elements of different types.
B) Arrays have a fixed size that cannot be changed.
C) Elements in an array are accessed using indices.
D) Arrays in C# are homogeneous, meaning they can store elements of the same type.
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
How would you declare and initialize an array of integers with values 1, 2, and 3 in C#?
A) int[] arr = new int[] {1, 2, 3};
D) int arr[3] {1, 2, 3};
;
C) int arr[3] = {1, 2, 3};
B) int[] arr = {1, 2, 3};
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which of the following statements about the Common Type System (CTS) is true?
A) CTS ensures compatibility only between C# and VB.NET.
B) CTS defines data types that are specific to each .NET language.
C) CTS ensures consistency and interoperability of types across different .NET languages.
D) CTS is a feature specific to the C# language.
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
In object-oriented programming (OOP), which principle emphasizes hiding the internal state of an object and only exposing the necessary functionalities?
A) Encapsulation
D) Abstraction
B) Inheritance
C) Polymorphism
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Contoh Soal

Quiz
•
University
14 questions
2R C-Skill Lab Test Autumn 2024-25

Quiz
•
University
15 questions
Java Programming Quiz

Quiz
•
University
15 questions
Списки в Java

Quiz
•
University
7 questions
Primeiro Quizz

Quiz
•
University
12 questions
JAVA FUNDAMENTALS

Quiz
•
University
10 questions
C Quiz

Quiz
•
University
15 questions
C Quiz

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University