Tài liệu Questions to .NET and Programming in C# v1

Thảo luận trong 'Kế Toán - Kiểm Toán' bắt đầu bởi Thúy Viết Bài, 5/12/13.

  1. Thúy Viết Bài

    Thành viên vàng

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

    }
    }
    The output of above code will be:[/TD]
    [TD][1.5][/TD]
    [/TR]
    [TR]
    [TD][/TD]
    [TD]a)[/TD]
    [TD=colspan: 6]4[/TD]
    [TD=colspan: 4]c)[/TD]
    [TD=colspan: 5]The code does not compile because local variable is not initialized correctly.[/TD]
    [TD][/TD]
    [/TR]
    [TR]
    [TD][/TD]
    [TD]b)[/TD]
    [TD=colspan: 6]0[/TD]
    [TD=colspan: 4]d)[/TD]
    [TD=colspan: 5]The code does not compile because Var2 is not initialized.[/TD]
    [TD][/TD]
    [/TR]
    [/TABLE]
     

    Các file đính kèm:

Đang tải...