SD_Prelim Exam

Quiz
•
Computers
•
University
•
Medium
Mel Bautista
Used 1+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What are the different data types available in C#?
c. int, float, double, char, string, bool, decimal
The different data types available in C# are int, float, double, char, string, bool, etc.
a. int, long, short, byte, float
b. int, double, char, string, boolean
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Explain the usage of if-else control structure in C# with an example.
The usage of if-else control structure in C# is to perform arithmetic operations on two numbers.
The usage of if-else control structure in C# is to check a condition and execute different code based on whether the condition is true or false.
The usage of if-else control structure in C# is to define a function that can be called based on a condition.
The usage of if-else control structure in C# is to repeat a block of code until a specified condition is met.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
How are arrays different from collections in C#?
Arrays are fixed in size and can only store elements of the same type, while collections can dynamically resize and store different types of elements.
Arrays and collections are the same in C#
Arrays can dynamically resize and store different types of elements
Collections are fixed in size and can only store elements of the same type
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of methods and functions in C#?
To organize and encapsulate code for reusability, modularity, and maintainability.
To slow down the execution of the program
To make the code less organized and harder to maintain
To make the code more confusing and difficult to understand
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the difference between value types and reference types in C#?
Value types and reference types are the same in C#.
Value types store their data directly, while reference types store a reference to the data in memory.
Value types store their data indirectly, while reference types store their data directly.
Value types cannot be used in C#.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Discuss the usage of switch case control structure in C#.
It is used to define a function in C#
It is used to repeat a block of code based on a condition
It is used to declare a variable in C#
It is used to execute one block of code from multiple options based on the value of an expression.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What are the advantages of using collections over arrays in C#?
Arrays are more flexible and provide dynamic resizing
Collections provide more flexibility, dynamic resizing, and additional functionality compared to arrays.
Arrays offer additional functionality compared to collections
Collections have limited functionality and are not resizable
Create a free account and access millions of resources
Similar Resources on Wayground
21 questions
quiz 2nd/3rd year

Quiz
•
University
20 questions
Midterm Exam Content ITEC 204

Quiz
•
University
20 questions
java quiz on exception handling

Quiz
•
University
22 questions
EXCEPTION HANDLING IN PYTHON

Quiz
•
University
20 questions
Control Structures C#

Quiz
•
University
25 questions
C Programing

Quiz
•
University
25 questions
Final Exam Revision (Trial)

Quiz
•
University
20 questions
Recap C++

Quiz
•
University
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

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

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
38 questions
Unit 6 Key Terms

Quiz
•
11th Grade - University
20 questions
La Hora

Quiz
•
9th Grade - University
7 questions
Cell Transport

Interactive video
•
11th Grade - University
7 questions
What Is Narrative Writing?

Interactive video
•
4th Grade - University