C MCQ Quiz Hub

Choose a topic to test your knowledge and improve your C skills

A variable which is declared inside a method is called a________variable





✅ Correct Answer: 2

Which is the String method used to compare two strings with each other ?





✅ Correct Answer: 2

Minimum and Maximum range of values supported by ‘float’ data type are ?





✅ Correct Answer: 3

Which datatype should be more preferred for storing a simple number like 35 to improve execution speed of a program?





✅ Correct Answer: 1

What will be output of the following conversion ? static void Main(string[] args) { char a = 'A'; string b = "a"; Console.WriteLine(Convert.ToInt32(a)); Console.WriteLine(Convert.ToInt32(Convert.Tochar(b))); Console.ReadLine(); }





✅ Correct Answer: 3

Scope of variable is related to definition of variable as: 1. Region of code within which variable value is valid and hence can be accessed. 2. No, relation with region where variable is declared its value is valid in entire scope.





✅ Correct Answer: 1

Type of Conversion in which compiler is unable to convert the datatype implicitly is ?





✅ Correct Answer: 2

Select output of the given set of Code : static void Main(string[] args) { String name = "r4r"; Console.WriteLine("Good Morning" + name); }





✅ Correct Answer: 3

Which of the following is NOT an Integer?





✅ Correct Answer: 1

Which of the following are value types? 1.Integer 2.Array 3.Single 4.String 5.Long





✅ Correct Answer: 2

Which of the following statements is correct?





✅ Correct Answer: 3

Which of the following can implement an interface? 1.Data 2.Class 3.Enum 4.Structure 5.Namespace





✅ Correct Answer: 2