<<= Back Next =>>
You Are On Multi Choice Question Bank SET 485

24251. Which of the following statements are correct about an interface used in C#.NET? An interface can contain properties, methods and events. The keyword must implement forces implementation of an interface. Interfaces can be overloaded. Interfaces can be implemented by a class or a struct. Enhanced implementations of an interface can be developed without breaking existing code.





24252. Which of the following can implement an interface? Data Class Enum Structure Namespace





24253. Which of the following statements is correct about the C#.NET code snippet given below? interface IMyInterface { void fun1(); void fun2(); } class MyClass: IMyInterface { private int i; void IMyInterface.fun1() { // Some code } }






24254. Which of the following statements is correct about the C#.NET code snippet given below? interface IPerson { String FirstName { get; set; } String LastName { get; set; } void Print(); void Stock(); int Fun(); }






24255. Which of the following is the correct way to implement the interface given below? interface IPerson { String FirstName { get; set; } }





24256. Which of the following statements is correct about the C#.NET code snippet given below? interface IMyInterface { void fun1(); int fun2(); } class MyClass: IMyInterface { void fun1() { } int IMyInterface.fun2() { } }






24257. Which of the following can be declared in an interface? Properties Methods Enumerations Events Structures





24258. A class implements two interfaces each containing three methods. The class contains no instance data. Which of the following correctly indicate the size of the object created from this class?






24259. Q.ICBN stands for:





24260. Which of the following statements is correct about Interfaces used in C#.NET?






24261. Ergot of rye is caused by a species of:





24262. When two species of different genealogy come to resemble each other as a result of adaptation, the phenomenon is termed:





24263. Adaptive radiation refers to:





24264. __________ book you want is out of print.





24265. The living organisms can be unexceptionally distinguished from the non-living things on the basis of their ability for:





24266. If a class called Point is present in namespace n1 as well as in namespace n2, then which of the following is the correct way to use the Point class?





24267. Which of the followings are NOT a .NET namespace? System.Web System.Process System.Data System.Drawing2D System.Drawing3D





24268. Which of the following statements is correct about namespaces in C#.NET?






24269. Which of the following is correct way to rewrite the C#.NET code snippet given below? using Microsoft.VisualBasic; using System.Windows.Forms; MessageBox.Show("Wait for a" + ControlChars.CrLf + "miracle");





24270. Which of the following statements is correct about the using statement used in C#.NET?






24271. Which of the following statements are correct about a namespace used in C#.NET? Classes must belong to a namespace, whereas structures need not. Every class, struct, enum, delegate and interlace has to belong to some or the other namespace. All elements of the namespace have to belong to one file. If not mentioned, a namespace takes the name of the current project. The namespace should be imported to be able to use the elements in it.





24272. Which of the following CANNOT belong to a C#.NET Namespace?






24273. Which of the following statements is correct about a namespace used in C#.NET?





24274. Which of the following C#.NET code snippets will correctly print "Hello C#.NET"?





24275. If ListBox is class present in System.Windows.Forms namespace, then which of the following statements are the correct way to create an object of ListBox Class? using System.Windows.Forms; ListBox lb = new ListBox(); using LBControl = System.Windows.Forms; LBControl lb = new LBControl(); System.Windows.Forms.ListBox lb = new System.Windows.Forms.ListBox(); using LBControl lb = new System.Windows.Forms.ListBox; using LBControl = System.Windows.Forms.ListBox; LBControl lb = new LBControl();





24276. If a namespace is present in a library then which of the following is the correct way to use the elements of the namespace?






24277. Which of the following is NOT a namespace in the .NET Framework Class Library?






24278. Which of the following statments are the correct way to call the method Issue() defined in the code snippet given below? namespace College { namespace Lib { class Book { public void Issue() { // Implementation code } } class Journal { public void Issue() { // Implementation code } } } } College.Lib.Book b = new College.Lib.Book(); b.Issue(); Book b = new Book(); b.Issue(); using College.Lib; Book b = new Book(); b.Issue(); using College; Lib.Book b = new Lib.Book(); b.Issue(); using College.Lib.Book; Book b = new Book(); b.Issue();





24279. Which of the following statements is correct about a namespace in C#.NET?





24280. Which of the following is absolutely neccessary to use a class Point present in namespace Graph stored in library?






24281. The Finches of Galapogas islands provide an evidence in favour of:





24282. One of the important consequences of geographical isolation is:





24283. There was ........ ugly scar on his face.





24284. Industrial melanism as observed in peppered moth proves that:





24285. Rama’s house is bigger than ----------.





24286. Which of the following statements is correct about the C#.NET code snippet given below? int d; d = Convert.ToInt32( !(30 < 20) );






24287. Which of the following is the correct output for the C#.NET code snippet given below? Console.WriteLine(13 / 2 + " " + 13 % 2);






24288. Which of the following statements are correct about the Bitwise & operator used in C#.NET? The & operator can be used to Invert a bit. The & operator can be used to put ON a bit. The & operator can be used to put OFF a bit. The & operator can be used to check whether a bit is ON. The & operator can be used to check whether a bit is OFF.






24289. Which of the following are Logical operators in C#.NET? && || ! Xor %






24290. Suppose n is a variable of the type Byte and we wish, to check whether its fourth bit (from right) is ON or OFF. Which of the following statements will do this correctly?






24291. What will be the output of the C#.NET code snippet given below? int num = 1, z = 5; if (!(num <= 0)) Console.WriteLine( ++num + z++ + " " + ++z ); else Console.WriteLine( --num + z-- + " " + --z );





24292. Suppose n is a variable of the type Byte and we wish to put OFF its fourth bit (from right) without disturbing any other bits. Which of the following statements will do this correctly?






24293. What will be the output of the C#.NET code snippet given below? byte b1 = 0xAB; byte b2 = 0x99; byte temp; temp = (byte)~b2; Console.Write(temp + " "); temp = (byte)(b1 << b2); Console.Write (temp + " "); temp = (byte) (b2 >> 2); Console.WriteLine(temp);





24294. Which of the following statements is correct about Bitwise | operator used in C#.NET?






24295. Which of the following is NOT an Assignment operator in C#.NET?






24296. What will be the output of the C#.NET code snippet given below? int i, j = 1, k; for (i = 0; i < 5; i++) { k = j++ + ++j; Console.Write(k + " "); }





24297. What will be the output of the C#.NET code snippet given below? int a = 10, b = 20, c = 30; int res = a < b ? a < c ? c : a : b; Console.WriteLine(res);





24298. Which of the following statements are correct about the following code snippet? int a = 10; int b = 20; bool c; c = !(a > b); There is no error in the code snippet. An error will be reported since ! can work only with an int. A value 1 will be assigned to c. A value True will be assigned to c. A value False will be assigned to c.






24299. Which of the following statements is correct about Bitwise ^ operator used in C#.NET?






24300. Which of the following statements are correct? The conditional operator (?:) returns one of two values depending on the value of a Boolean expression. The as operator in C#.NET is used to perform conversions between compatible reference types. The & operator is also used to declare pointer types and to dereference pointers. The -> operator combines pointer dereferencing and member access. In addition to being used to specify the order of operations in an expression, brackets [ ] are used to specify casts or type conversions.






<<= Back Next =>>
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use
DMCA.com Protection Status Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions