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. |
Q21 ⇒ class Trial {int i; Decimal d; } struct Sample { private int x; private Single y; private Trial z; } Sample ss = new Sample(); will be created on the stack [other wrong options] [Discuss in forum] will be created on the heap. will be created on the heap. Trial object referred by will be created on the stack. |
Q22 ⇒ Which of the following statements is true about an enum used in C#.NET? An variable can be defined inside a class or a namespace. [other wrong options] [Discuss in forum] An variable cannot have a access modifier. An variable cannot have a access modifier. An variable cannot have a access modifier. |
Q23 ⇒ Output : enum color {red,green,blue} color c = color.red; Type t; t = c.GetType(); string[ ]str; str = Enum.GetNames(t); Console.WriteLine(str[ 0 ]); red [other wrong options] [Discuss in forum] 0 1 color.red |
Q24 ⇒ Which of the following statements is correct about a namespace in C#.NET? Namespaces help us to control the visibility of the elements present in it. [other wrong options] [Discuss in forum] A namespace can contain a class but not another namespace. It is necessary to use the using statement to be able to use an element of a namespace If not mentioned, then the name 'root' gets assigned to the namespace. |
Q25 ⇒ Which of the following is the Object Oriented way of handling run-time errors? Exceptions [other wrong options] [Discuss in forum] Setjump and Longjump OnError HERESULT |
Q26 ⇒ Which of the following operators can be overloaded? All of these [other wrong options] [Discuss in forum] true false ~ |
Q27 ⇒ Which of the following statements is correct about Interfaces used in C#.NET? Interfaces can be inherited. [other wrong options] [Discuss in forum] Interfaces can contain static data and methods. Interfaces can contain only method declaration. All interfaces are derived from an class. |
Q28 ⇒ Which of the following statements is incorrect about delegate? Only one method can be called using a delegate. [other wrong options] [Discuss in forum] Delegates are object oriented. Delegates are type-safe. Delegates are reference types. |
Q29 ⇒ Which of the following statements is incorrect about a delegate? Delegate is a value type. [other wrong options] [Discuss in forum] Delegates are type-safe wrappers for function pointers. A single delegate can invoke more than one method. Delegates can be shared. |
Q30 ⇒ Once applied which of the following CANNOT inspect the applied attribute? Linker [other wrong options] [Discuss in forum] CLR ASP.NET Runtime Visual Studio.NET |
Q31 ⇒ Which of the following utilities can be used to compile managed assemblies into processor-specific native code? ngen [other wrong options] [Discuss in forum] gacutil sn dumpbin |
Q32 ⇒ When would a structure variable get destroyed? When it goes out of scope. [other wrong options] [Discuss in forum] When no reference refers to it, it will get garbage collected. Depends upon whether it is created using or without using . Depends upon the Project Settings made in Visual Studio.NET. |
Q33 ⇒ Which of the following is NOT an Exception? Incorrect Arithmetic Expression [other wrong options] [Discuss in forum] StackOverflow Division By Zero Insufficient Memory |
Q34 ⇒ The CLR is physically represented by an assembly named _______ mscoree.dll [other wrong options] [Discuss in forum] mscor.dll msoree.dll mcoree.dll |
Q35 ⇒ In C#, all binary operators are ______. Left-associative [other wrong options] [Discuss in forum] Right-associative Top-associative Center-associative |
Q36 ⇒ Which of the following statements is correct about Managed Code? Managed code is the code that is written to target the services of the CLR. [other wrong options] [Discuss in forum] Managed code is the code that is compiled by the JIT compilers. Managed code is the code where resources are Garbage Collected. Managed code is the code that runs on top of Windows. |
Q37 ⇒ The formal-parameter-list is always enclosed in _______. Parenthesis [other wrong options] [Discuss in forum] Square Semicolon Colon |
Q38 ⇒ Which of the following statements are correct about static functions? Static functions are invoked using class. [other wrong options] [Discuss in forum] Static functions are invoked using objects of a class. Static functions can access static data as well as instance data. Static functions are outside the class scope. |
Q39 ⇒ The theory of _____ implies that user can control the access to a class, method, or variable. Encapsulation [other wrong options] [Discuss in forum] Data hiding Information Hiding Polymorphism |
Q40 ⇒ Which of the following is the Object Oriented way of handling run-time errors? Exceptions [other wrong options] [Discuss in forum] OnError HERESULT Error codes |
Or |