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

24301. Which of the following are the correct ways to increment the value of variable a by 1? ++a++; a += 1; a ++ 1; a = a +1; a = +1;






24302. What will be the output of the C#.NET code snippet given below? byte b1 = 0xF7; byte b2 = 0xAB; byte temp; temp = (byte)(b1 & b2); Console.Write (temp + " "); temp = (byte)(b1^b2); Console.WriteLine(temp);





24303. Which of the following is NOT an Arithmetic operator in C#.NET?






24304. Which of the following are NOT Relational operators in C#.NET? >= != Not <= <>=






24305. Which of the following is NOT a Bitwise operator in C#.NET?






24306. The concept of chemical evolution is based on:





24307. One who loves and helps mankind





24308. If you are caught trying to smuggle gold through the customs, it will be -----





24309. You should start for the station immediately, otherwise you ........ the train





24310. Find mis spelt word





24311. Which of the followings is the correct way to overload + operator?






24312. Among the human ancestors the brain size was more than 1000 CC in:





24313. Which of the following statements are correct? All operators in C#.NET can be overloaded. We can use the new modifier to modify a nested type if the nested type is hiding another type. In case of operator overloading all parameters must be of the different type than the class or struct that declares the operator. Method overloading is used to create several methods with the same name that performs similar tasks on similar data types. Operator overloading permits the use of symbols to represent computations for a type.





24314. Which of the following statement is correct about the C#.NET code snippet given below? public class Sample { public int x; public virtual void fun() { } } public class DerivedSample : Sample { new public void fun() { } }





24315. The study of diseases is..............





24316. Which of the following operators cannot be overloaded? true false new ~ sizeof





24317. Which of the following modifier is used when a virtual method is redefined by a derived class?






24318. In order for an instance of a derived class to completely take over a class member from a base class, the base class has to declare that member as






24319. Which of the following can be declared as a virtual in a class? Methods Properties Events Fields Static fields





24320. Choose the antonyms IGNOBLE





24321. Which of the following are necessary for Run-time Polymorphism? The overridden base method must be virtual, abstract or override. Both the override method and the virtual method must have the same access level modifier. An override declaration can change the accessibility of the virtual method. An abstract inherited property cannot be overridden in a derived class. An abstract method is implicitly a virtual method.





24322. Which of the following unary operators can be overloaded? true false + new is





24323. A derived class can stop virtual inheritance by declaring an override as






24324. Which of the following keyword is used to change the data and behavior of a base class by replacing a member of a base class with a new derived member?






24325. The policeman warned the photogrpaher ............too near.





24326. Which of the following keyword is used to overload user-defined types by defining static member functions?






24327. Select the correct statement from the following:





24328. The correct sentence is





24329. Pandemonium means





24330. The train passes........ a long tunnel





24331. What is common between parrot, platypus and kangaroo?





24332. If Sample class has a Length property with get and set accessors then which of the following statements will work correctly? Sample.Length = 20; Sample m = new Sample(); m.Length = 10; Console.WriteLine(Sample.Length); Sample m = new Sample(); int len; len = m.Length; Sample m = new Sample(); m.Length = m.Length + 20;





24333. Which of the following is the correct way to implement a write only property Length in a Sample class?





24334. A property can be declared inside a namespace or a procedure.



24335. If a Student class has an indexed property which is used to store or retrieve values to/from an array of 5 integers, then which of the following are the correct ways to use this indexed property? Student[3] = 34; Student s = new Student(); s[3] = 34; Student s = new Student(); Console.WriteLine(s[3]); Console.WriteLine(Student[3]); Student.this s = new Student.this(); s[3] = 34;





24336. If Sample class has a Length property with set accessor then which of the following statements will work correctly?






24337. If Sample class has a Length property with get accessor then which of the following statements will work correctly?






24338. 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);






24339. Suppose a Student class has an indexed property. This property is used to set or retrieve values to/from an array of 5 integers called scores[]. We want the property to report "Invalid Index" message if the user attempts to exceed the bounds of the array. Which of the following is the correct way to implement this property?





24340. Which of the following statements is correct about properties used in C#.NET?





24341. Which of the following is the correct way to implement a read only property Length in a Sample class?





24342. Which of the folowing does an indexer allow to index in the same way as an array? A class A property A struct A function An interface





24343. An Employee class has a property called age and emp is reference to a Employee object and we want the statement Console.WriteLine(emp.age) to fail. Which of the following options will ensure this functionality?






24344. A property can be declared inside a class, struct, Interface.



24345. This young man can get along not only with girls, but also with _____ parents.





24346. A Student class has a property called rollNo and stu is a reference to a Student object and we want the statement stu.RollNo = 28 to fail. Which of the following options will ensure this functionality?






24347. If a class Student has an indexer, then which of the following is the correct way to declare this indexer to make the C#.NET code snippet given below work successfully? Student s = new Student(); s[1, 2] = 35;





24348. Which of the following statements are correct? The signature of an indexer consists of the number and types of its formal parameters. Indexers are similar to properties except that their accessors take parameters. Accessors of interface indexers use modifiers. The type of an indexer and the type of its parameters must be at least as accessible as the indexer itself. An interface accessor contains a body.





24349. My father has not come home ______.





24350. The synonym of ‘dig’ is:





<<= 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