Users Also Read
Read MCQ's/Objective questions
MCQ's Search Engine
Important Question
ASP.NET
Basic Computer Knowledge
Basic of Linux/Unix
C Language
C++ Programming
Computer Graphics
Computer Hardware
Computer Networking
Computer Security - Cyber crime & Laws
Data Structures & Algorithms
Database Management System
Digital Computer Electronics
HTML
Important File Extensions
Imp. Shortcut Keys used in Computer
Internet, Web & Email
Java - Concepts and Its Programming
Language Processors
Management Information System (MIS)
MS Access
MS Excel
MS Word
Operating System
Oracle, SQL & PL/SQL
PHP Basic
Power Point
Programming Languages
Software Engineering
System Analysis and Design (SAD)
System software & compiler design
Tally
VB.NET
Visual Basic
Home⇒ Computer Engineering⇒ C sharp programming
1-Dont try to cram or spend more time here just read it fast and cover syllabus then practice MCQ's cheptor of same topic to check your progress. . |
2-Wrong options are also given but dont concentrate there, Right answer is in bold format. |
Q1 ⇒ Which of the following statements is correct about constructors? If we do not provide a constructor, then the compiler provides a zero-argument constructor. [other wrong options] [Discuss in forum] If we provide a one-argument constructor then the compiler still provides a zero-argument constructor. Static constructors can use optional arguments. Overloaded constructors cannot use optional arguments. |
Q2 ⇒ Which of the following is NOT an Arithmetic operator in C#.NET? ** [other wrong options] [Discuss in forum] / + % |
Q3 ⇒ _________ are reserved, and cannot be used as identifiers. Keywords [other wrong options] [Discuss in forum] literal variables Identifiers |
Q4 ⇒ Arrays in C# are ______ objects Reference [other wrong options] [Discuss in forum] Logical Value Arithmetic |
Q5 ⇒ The methods that have the same name, but different parameter lists and different definitions is called______. Method Overloading [other wrong options] [Discuss in forum] Method Overriding Method Overwriting Method Overreading |
Q6 ⇒ The reason that C# does not support multiple inheritances is because of ______. Name collision [other wrong options] [Discuss in forum] Method collision Function collision Interface collision |
Q7 ⇒ The ______ parentheses that follow _____ indicate that no information is passed to Main (). Empty, Main [other wrong options] [Discuss in forum] Empty, class Empty, submain Empty, Namespace |
Q8 ⇒ Two methods with the same name but with different parameters. Overloading [other wrong options] [Discuss in forum] Multiplexing Duplexing Loading |
Q9 ⇒ An instance variable represents an attribute of an object [other wrong options] [Discuss in forum] is an object of a class is a method of a class none of these |
Q10 ⇒ String mystring; Creates a(n) Object [other wrong options] [Discuss in forum] class Constructor None of these |
Q11 ⇒ The code public class B : A { } Defines a class that inherits the public and protected methods of A only [other wrong options] [Discuss in forum] Defines a class that inherits all the methods of A All of the above Error |
Q12 ⇒ Which of the following statement correctly assigns a value 33 to a variable c? If byte a = 11, b = 22, c; c = (byte) (a + b); [other wrong options] [Discuss in forum] c = (byte) a + (byte) b; c = (int) a + (int) b; c = (int)(a + b); |
Q13 ⇒ Which of the following statements are correct about the C#.NET code snippet given below? if (age > 18 && no < 11) a = 25; All of these [other wrong options] [Discuss in forum] The condition will be evaluated only evaluates to . The statement will get executed both the conditions are . && is known as a short circuiting logical operator. |
Q14 ⇒ Which of the following statements is correct about the C#.NET code snippet given below? int d; d = Convert.ToInt32( !(30 < 20) ); A value will be assigned to . [other wrong options] [Discuss in forum] A value will be assigned to . A value will be assigned to . The code reports an error. |
Q15 ⇒ Output : int a = 10, b = 20, c = 30; int res = a < b ? a < c ? c : a : b; Console.WriteLine(res); 30 [other wrong options] [Discuss in forum] 0 10 20 |
Q16 ⇒ Which of the following statements are correct? All of these [other wrong options] [Discuss in forum] Instance members of a can be accessed only through an object of that . All objects created from a will occupy equal number of bytes in memory. A is a blueprint or a template according to which objects are created. |
Q17 ⇒ Which of the following statements are correct about static functions? All of these [other wrong options] [Discuss in forum] Static functions can access only static data. Static functions cannot call instance functions. Instance functions can call static functions and access static data. |
Q18 ⇒ Which of the following should be used to implement a 'Has a' relationship between two entities? Containership [other wrong options] [Discuss in forum] Polymorphism Templates Encapsulation |
Q19 ⇒ Which one of the following statements is correct? The default value of numeric array elements is zero. [other wrong options] [Discuss in forum] The length of an Array is the number of dimensions in the Array. The Array elements are guaranteed to be sorted. The rank of an Array is the total number of elements it can contain. |
Q20 ⇒ Output : String s1 = "ALL MEN ARE CREATED EQUAL"; String s2; s2 = s1.Substring(12, 3); Console.WriteLine(s2); CRE [other wrong options] [Discuss in forum] ARE REA CREATED |
Or |