Tìm kiếm:
TRANG NHÀ
Giới thiệu VNEDU.ORG
Điều khoản và bản quyền
Liên lạc VNEDU
TRẮC NGHIỆM TRỰC TUYẾN
---Công Cụ:---
Soạn Biểu thức
Bảng màu HTML
Ký hiệu đặc biệt 01
Ký hiệu đặc biệt 02
Ký hiệu đặc biệt 03
Ký hiệu đặc biệt 04
Ký hiệu đặc biệt 05
Ký hiệu đặc biệt 06
Ký hiệu đặc biệt 07
Ký hiệu đặc biệt [Toán]
53 bài trong 6 trang (10 bài/trang) và bạn đang ở trang 1.
Demo

An Account class has a property called accountNo and acc is a reference to a bank object and we want the C#.NET code snippet given below to work. Which of the following options will ensure this functionality? acc.accountNo = 10; Console.WriteLine(acc.accountNo); A. Declare accountNo property with both get and set accessors. B. Declare accountNo property with only get accessor. C. Declare accountNo property with get, set and normal accessors. D. Declare accountNo property with only set accessor..........

Demo

Which of the following statements are correct about an enum used in C#.NET? An enum can be declared inside a class. An enum can take Single, Double or Decimal values. An enum can be declared outside a class. An enum can be declared inside/outside a namespace. An object can be assigned to an enum variable. A. 1, 3, 4 B. 2, 5 C. 3, 4 D. 2, 4, 5.....

Demo

Which of the following statements are correct about an enum used inC#.NET? To use the keyword enum, we should either use [enum] or System.Enum. enum is a keyword. Enum is class declared in System.Type namespace. Enum is a class declared in the current project's root namespace. Enum is a class declared in System namespace. A. 1, 3 B. 2, 4 C. 2, 5 D. 3, 4.....

Demo

Which of the following will be the correct output for the C#.NET program given below? namespace IndiabixConsoleApplication { struct Sample { public int i; } class MyProgram { static void Main(string[] args) { Sample x = new Sample(); x.i = 10; fun(ref x); Console.Write(x.i + " "); } public static void fun(ref Sample y) { y.i = 20; Console.Write(y.i + " "); } } } A. 20 10 B. 10 20 C. 10 10 D. 20 20.....

Demo

Which of the following statements are correct? String is a value type. String literals can contain any character literal including escape sequences. The equality operators are defined to compare the values of string objects as well as references. Attempting to access a character that is outside the bounds of the string results in an IndexOutOfRangeException. The contents of a string object can be changed after the object is created. A. 1, 3 B. 3, 5 C. 2, 4 D. 1, 2, 4............

Demo

Which of the following will be the correct output for the C#.NET code snippet given below? String s1 = "Nagpur"; String s2; s2 = s1.Insert(6, "Mumbai"); Console.WriteLine(s2); A. NagpuMumbair B. Nagpur Mumbai C. Mumbai D. Nagpur E. NagpurMumbai...............

Demo

Which of the following statements are correct about the C#.NET code snippet given below? int[][]intMyArr = new int[2][]; intMyArr[0] = new int[4]{6, 1, 4, 3}; intMyArr[1] = new int[3]{9, 2, 7}; A. intMyArr is a reference to a 2-D jagged array. B. The two rows of the jagged array intMyArr are stored in adjacent memory locations. C. intMyArr[0] refers to the zeroth 1-D array and intMyArr[1] refers to the first 1-D array. D. intMyArr refers to intMyArr[0] and intMyArr[1]. E. intMyArr refers to intMyArr[1] and intMyArr[2]......

Demo

Which of the following statements are correct about Inheritance in C#.NET? A derived class object contains all the base class data. Inheritance cannot suppress the base class functionality. A derived class may not be able to access all the base class data. Inheritance cannot extend the base class functionality. In inheritance chain construction of object happens from base towards derived. A. 1, 2, 4 B. 2, 4, 5 C. 1, 3, 5 D. 2, 4..........

Demo

Which of the following statements are correct about the C#.NET code snippet given below? namespace IndiabixConsoleApplication { class index { protected int count; public index() { count = 0; } } class index1: index { public void increment() { count = count +1; } } class MyProgram { static void Main(string[] args) { index1 i = new index1(); i.increment(); } } } count should be declared as public if it is to become available in the inheritance chain. count should be declared as protected if it is to become available in the inheritance chain. While constructing an object referred to by i firstly constructor of index class will be called followed by constructor of index1 class. Constructor of index class does not get inherited in index1 class. ......

Demo

Which of the following statements are correct about constructors in C#.NET? Constructors cannot be overloaded. Constructors always have the name same as the name of the class. Constructors are never called explicitly. Constructors never return any value. Constructors allocate space for the object in memory. A. 1, 3, 5 B. 2, 3, 4 C. 3, 5 D. 4, 5 E. None of these.......

    2    3    4    5    Right  
Thống kê:
Phát triển hệ thống: TRƯƠNG HỮU ĐỨC - Phiên bản 3.0 - © Copyright 2013 - 2024 - VNEDU.ORG

free counters