.
  Vyom World.com . Let's Touch the Sky Together!  
.

Home
VyomWorld.com Home
Interview Questions
VyomLinks.com Home
JobsAssist.com Home
Vyom Network
Contact Us
Jobs & Careers
Resume Submitter
Placement Papers
IT Companies Directory
Computer Jobs
Interview Questions
Online Exams
Vyom Career eMag.
Fun
Send FREE SMS!
SMS Jokes
Source Codes Library
Source Codes Home
ASP Source Codes
C Source Codes
C++ Source Codes
COBOL Source Codes
Java Source Codes
Pascal Source Codes
Submit Source Codes
GATE
GATE an Overview
GATE Preparation
Study Materal
GRE
GRE an Overview
GRE Questions
GRE Preparation
GRE Universities
TOEFL Preparation
TOEFL Resources
GMAT Preparation
GMAT Resources
MBA Preparation
MBA Resources
Networking Concepts
Networking Concepts
Testing Preparation
Testing Resources
Webmasters
Free Traffic Builder
Webmaster Articles
Web Hosting
Tutorials
Hardware Tutorial
1500 Free eBooks New!


Home » Placement Papers » Mphasis Placement Papers » Mphasis Previous Year Placement Paper

 

Mphasis Placement Paper -: .Net Questions With Answers


Advertisements
Advertisements




Mphasis Previous Years Solved Sample Placement Papers

  1. Which keyword is used to declare an interface in C#?

    A: interface

    B: Interface

    C: implement

    D: Implement

    Ans: A

    Explanation:

    In C#, an interface can be declared using the interface keyword. An interface can contain declarations of methods, properties, indexers, and events.

  2. In C#, by default, the default interface methods are ___.

    A: virtual

    B: sealed

    C: private

    D: public

    Ans: A

    Explanation:

    In C#, by default, the default interface methods are virtual unless the sealed or private modifier is used.

  3. In C#, the objects created using the new operator are stored in ___.

    A: Cache Memory

    B: Stack Memory

    C: Heap Memory

    D: None of the above

    Ans: C

    Explanation:

    In C#, the objects created using the new operator are stored in Heap Memory.

  4. Which of the following cannot be used to declare an interface in C#?

    A: Methods

    B: Properties

    C: Events

    D: Structures

    Ans: D

    Explanation:

    In C#, to declare an interface, we cannot use structures.

  5. Which access specifier is used in an interface in C#?

    A: private

    B: public

    C: protected

    D: All of the above

    Ans: B

    Explanation:

    In C#, the interface members are always public, because the purpose of an interface is to enable other types to access a class or struct. No other access modifiers can be applied to interface members.

  6. Which type of class does not have its own objects but acts as a base class for its subclass in C#?

    A: Abstract Class

    B: Static Class

    C: Sealed Class

    D: Protected Class

    Ans: A

    Explanation:

    In C#, the Abstract Class does not have its own objects but acts as a base class for its subclass.

  7. Which modifier is used while redefining an abstract method by a derived class in C#?

    A: Overloads

    B: New

    C: Overrides

    D: Virtual

    Ans: C

    Explanation:

    In C#, the Overrides modifier is used while redefining an abstract method by a derived class.

  8. Does C# support pointers?

    A: Yes

    B: No

    Ans: A

    Explanation:

    Yes, C# supports pointers to a limited extent.

  9. A C# pointer is used to store the ___ of another type.

    A: Value

    B: Memory address

    C: Size of the type

    D: Reference of the variable

    Ans: B

    Explanation:

    A C# pointer is used to store the memory address of another type.

  10. C# pointers can only be declared to hold the memory address of ___.

    A: value types and arrays

    B: reference types

    C: pointer types

    D: reference and pointer types

    Ans: A

    Explanation:

    C# pointers can only be declared to hold the memory address of value types and arrays. Unlike reference types, pointer types are not tracked by the garbage collection mechanism.

  11. How many catch blocks can be used with a single try block in C#?

    A: One

    B: Two

    C: Many

    D: None of the above

    Ans: C

    Explanation:

    In C#, there can be multiple (many) catch blocks with a single try block.

  12. Is the use of a return statement necessary in every function in C#?

    A: Yes

    B: No

    Ans: A

    Explanation:

    Yes, the use of a return statement is necessary in every function in C#.

  13. Which access specifier should be used for the Main() method in C#?

    A: private

    B: public

    C: protected

    D: internal

    Ans: B

    Explanation:

    The C# Main() method should be defined as public because it is called by runtime. By default, the Main() method is private.

  14. In C#, a namespace is a collection of classes?

    A: True

    B: False

    Ans: A

    Explanation:

    Yes, a namespace is a collection of classes.

  15. Which is the C# class from which the UInt data type is derived?

    A: System.Int16

    B: System.Int32

    C: System.UInt16

    D: System.UInt32

    Ans: D

    Explanation:

    The UInt data type is derived from the System.UInt32 class.

  16. Which is the first line of a C# program?

    A: using System;

    B: using system;

    C: using Namespace;

    D: namespace MyApplication

    Ans: A

    Explanation:

    The first line of a C# program is:

    using System;




 


.

Recently Updated: New Placement Papers added.
Vyom Network : Web Hosting | Dedicated Server | Free SMS, GRE, GMAT, MBA | Online Exams | Freshers Jobs | Software Downloads | Programming & Source Codes | GRE Preparation | Jobs, Discussions | Software Listing | Free eBooks | Free eBooks | Free Business Info | Interview Questions | Free Tutorials | International Business Information | IAS Preparation | Jokes, Songs, Fun | Free Classifieds | Free Recipes | FAQs | Free Downloads | Bangalore Info | Tech Solutions | Project Outsourcing, Web Hosting | GATE Preparation | MBA Preparation | SAP Info | Excellent Mobiles | Software Testing | Interview Questions | Freshers Jobs | Server Insiders | File Extension Directory

Copyright ©2003-2024 Vyom Technosoft Pvt. Ltd., All Rights Reserved. Read our Privacy Policy