1- To create a string literal exclude escap # A- !string B- - TopicsExpress



          

1- To create a string literal exclude escap # A- !string B- #string C- @string D- $string 2- To allocate memory for an object instantiation, you must use the ____ A- alloc B- instant C- new D- mem 3- To change the value of a variable while debugging, ____ window is used. A- Local B- Debug C- Watch D- Immediate 4- try{ intX=Convert.ToInt32(lngX); intY=intX/intZero; } Write a catch clause usingfewest codes: A- catch(OverflowException ex){} B- catch(ArithmeticException ex){} C- catch(OverflowException ex){} catch(DivideByZeroException ex){} catch(Exception ex){} D- catch(DivideByZeroException ex){} 5- Typical mouse events include ____ A- mouse clicks, mouse presses, mouse moves B- mouse double clicks, mouse presses, mouse moves C- mouse clicks, mouse presses, mouse down D- mouse clicks, mouse presses, mouse up 6- Unboxing require an ____ cast. A- explicit B- implicit C- None of the above D- implicit or explicit 7- Unlike C++, C# does not have ____. A- attribute B- tructure C- interface D- pointer 8- Using code, how to add a Separator in a menu named mnu1? A- mnu1.MemuItems.Add("-"); B- mnu1.MemuItems.Add("&"); C- mnu1.MemuItems.Add("_"); D- mnu1.MemuItems.Add(Menu.Separator); 9- Value types differ from reference types as ____. A- data in the value type variable is easily accessible B- Variables of the value directly contain their data, whereas variables of the reference types store references to objects. C- variables of the reference types directly contain their data, whereas variables of the value store references to objects. D- None of the above 10- 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: A- The code does not compile because local variable is not initialized correctly B- The code does not compile because Var2 is not initialized C- 0 D- 4
Posted on: Sat, 08 Jun 2013 23:49:17 +0000

Trending Topics



Recently Viewed Topics




© 2015