- Home
- Programming
- C Sharp Programming
11.
double and float data types can store values with decimals.
- A.True
- B.False
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
12.
Which declaration can assign the default value to an int type?
- A.new int();
- B.int myInt = new int();
- C.int myInt;
- D.int myInt = new int(default);
- Answer & Explanation
- Report
Answer : [B]
Explanation :
Explanation :
13.
True or false: structs can contain methods.
- A.True
- B.False
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
14.
What is the correct way to access the firstName property of a struct named Student?
- A.string name = Student.firstName;
- B.string name = Student.firstName();
- C.string name = Student(firstName);
- D.string name = Student.(firstName);
- Answer & Explanation
- Report
Answer : [A]
Explanation :
Explanation :
15.
In the following enumeration, what will be the underlying value of Wed?
enum Days {Mon = 1, Tue, Wed, Thur, Fri, Sat, Sun};
enum Days {Mon = 1, Tue, Wed, Thur, Fri, Sat, Sun};
- A.2
- B.3
- C.4
- D.It has no numeric value.
- Answer & Explanation
- Report
Answer : [B]
Explanation :
Explanation :