Questions to .NET and Programming in C#

18 1.3K 8
Questions to .NET and Programming in C#

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Questions to .NET and Programming in C#

Questions to NET and Programming in C# Ver 1.0 10 11 12 13 .NET is said to accelerate the next generation of the Internet b) False a) True The unique feature of NET is the _support that it provides a) Multi-platform b) Multi-language NET is a whole new platform centered around the Intranet a) True b) False A program in NET is first compiled by the language specific compiler into a) Common Language c) Intermediate Language b) Runtime Language d) Visual Basic What is the role of the CLR (Select all that apply) c) Compiles program into a) Manages memory machine code b) Compiles program to a exe d) Compile once and run on file any CPU & OS that supports the runtime Microsoft NET is primarily made up of the following three components a) Visual Studio NET c) 3rd party NET services b) Microsoft NET products and d) NET platform itself services Select the two core technologies on which the NET platform is based a) XML c) Internet Protocols b) WML d) Internet computing Microsoft NET allows developers to develop applications using different languages, which run on the Unix platform b) False a) True The NET platform is built on Internet Protocols such as _ and _ c) SOAP a) TCP /IP b) IP d) HTTP The NET platform is built on the following features of the Windows 2000 server family.(Select all that apply) c) Scalability a) Reliability b) Security d) Manageability Select the core NET Enterprise Servers c) Apple Server a) Commerce Server 2000 d) Visual Net Server b) Exchange 2000 Server Core Microsoft NET building block services a) Calendar c) Dynamic delivery b) Dynamic Service d) Notification _ service allows users to handle their own rules for handling [0.5] [0.5] [0.5] [1.0] [2.0] [2.0] [2.5] [0.5] [1.0] [1.5] [2.5] [2.0] [1.5] 14 15 16 17 18 19 20 21 22 23 24 25 26 27 messages and notifications a) Notification b) Personalization Select the service, which allows users to maintain their schedules thus facilitating timely and manageable interactions with other users a) Dynamic Service c) Notification b) Personalization d) Calendar allows developers and business analysts work together to define and modify business processes shared between applications c) Common Language Runtime a) Orchestration b) Web Service d) Net Framework Microsoft Net was formerly known as a) NGUS c) NGWS (Next Generation Windows Services) b) MGWS d) NWGS C# allows _ use of native pointers a) Private c) Public b) Complete d) Restricted What is the correct syntax for comment entries in C# a) // … // c) /** … **/ d) / … / b) /*… */ The public keyword can be ignored for the Main function in C# b) False a) True A C# program can have only one using directive a) True b) False The WriteLine method is a part of the class a) System c) Console b) System.Output d) Console.System C# is considered as a modern replacement for the language/s like (Choose all that apply) a) Java c) C++ d) VB b) C C# is a language a) purely Procedure-Oriented c) Procedure-Oriented and Object-Oriented b) partially Procedure-Oriented d) purely Object-Oriented Manual memory management needs to be done in C# a) True b) False Access Modifiers for variables in C# can be the following (Select all that apply) a) public c) private d) public protected b) protected In C#, an underscore is allowed as an initial character of a variable b) False a) True The prefix enables the use of keywords as identifiers, which is useful when interfacing with other programming languages [1.5] [1.0] [0.5] [0.5] [1.0] [1.0] [0.5] [1.0] [0.5] [0.5] [0.5] [1.0] [0.5] [0.5] 28 29 30 31 32 33 34 35 36 37 38 39 40 a) # c) $ b) & d) @ In C# array elements are automatically assigned default values b) False a) True What statement is used to completely abort the execution of a loop? a) continue d) break b) goto e) exit Console.ReadLine() returns the input as a c) Stream of Characters a) String b) Character d) Integer In C# datatypes are divided into two fundamental categories c) Pointers and values a) Value types and reference types in simple terms is nothing but conversion of a value type into a reference type a) Casting c) Unboxing d) Overriding b) Boxing is all about converting a reference type into a value type a) Overloading c) Unboxing b) Boxing d) Casting Unboxing requires an _cast a) implicit c) implicit or explicit d) None of the above b) explicit The _class is the ultimate base class for all data types c) Type a) Object b) System d) Console System namespace is used in the C# programs to: c) interact with other classes in a) interact with the system the namespace environment b) Capture program outputs d) interact with the operating system Which of the following is a correct statement to declare the class “MyClass”? a) Class myclass c) class MyClass b) class Myclass d) Class MyClass Which of the following is a valid variable in C#? a) class c) _Class b) Class d) @class Basic input and output operations are performed in C# using the methods of the class in the _namespace a) InputOutput,Class c) Console,System b) InputOutput, System d) System,Console C# provides an Unified Type System, which means that all data types are derived from class a) System c) Variable [0.5] [0.5] [1.0] [1.0] [1.0] [1.0] [0.5] [0.5] [1.0] [1.0] [1.0] [1.0] [1.5] 41 42 43 44 45 46 d) Class b) Object Which of the following are value types? a) Interface c) Struct b) String d) Union Which of the following will execute without errors at compile time a) class Object{ d) class Object{ static void main(){} public static Main(){} } } e) class Object{ b) class Object{ static void Main(){}; static void Main(){} } } c) Class Object{ static void Main(){} } Which of the following are valid identifiers? a) Void c) @void b) _void d) _var for(int i=0;i

Ngày đăng: 21/08/2012, 15:55

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan