Home
You may like this!
11.
double and float data types can store values with decimals.
  • A.
    True
  • B.
    False
  • Answer & Explanation
  • Report
Answer : [A]
Explanation :
Report
Name Email  
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 :
Report
Name Email  
13.
True or false: structs can contain methods.
  • A.
    True
  • B.
    False
  • Answer & Explanation
  • Report
Answer : [A]
Explanation :
Report
Name Email  
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 :
Report
Name Email  
15.
In the following enumeration, what will be the underlying value of Wed?
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 :
Report
Name Email