0 évaluation0% ont trouvé ce document utile (0 vote)
26 vues5 pages
An __ method is created when you instantiate or refer a delegate with a block of ____ code. A for loop can be created without a body when.n $%, a function can be de#ned within another function.
An __ method is created when you instantiate or refer a delegate with a block of ____ code. A for loop can be created without a body when.n $%, a function can be de#ned within another function.
An __ method is created when you instantiate or refer a delegate with a block of ____ code. A for loop can be created without a body when.n $%, a function can be de#ned within another function.
An __ method is used in place of a ____ method if that method is to be
invoked only throung a delegate. a. anonymous, named b. named, anonymous c. anonymous, unnamed d. unnamed, anonymous 2. An ______ method is created when you instantiate or refer a delegate with a block of ____ code. a. anonymous, named. b. named, anonymous c. anonymous, unnamed d. unnamed, anonymous 3. which of the following statements about generics are correct?chon nhieu! a. "enerics are data structures that guard against reuse of de#ned $% data type functionalities. b. "enerics allow you to reuse the code in a safe manner without casting or bo&ing. c. "enerics ares parameteri'ed data structures that can work with reference types only. d. "enerics always accept a type parameter, which is a placeholder for the re(uired data types ). ____ is a process of assigning a variable that is type*cast to another variable of type +b,ect a. -o&ing b. .mplicit bo&ing. c. /&plicit bo&ing. 0. 1hen a variable is bo&ed or converted to a reference type, it gets stored on the _________ a. 2ead b. 3tack 4. .n $%, a for loop is created without a body when. a. 5he operations performed with the body of the loop can be accommodated within the loop de#nition itseft. b. 5he operations performed with the body of the loop cannot be accommodated within the loop de#nition itseft. 6. 1ith respect to $%. a. $% does not permit the statement se(uence of one case block to continue into the ne&t. b. 1hile loop can be de#ned within another while loop. c. 7or loop can be created without a body. * 3tatements 1,2 are true * 3tatements 2,3 are true * 3tatements 1,2,3 are true 8. 5he goto statement directly e&ecutes a. A labeled statement b. A labeled block of e&pressions c. A labeled e&pression 9. An array of arrays is de#ned as a ________ a. 3uper array b. :ouble array c. Jagged array 1;.5he ________ interface of the array class allows modi#cation of elements de#ned in the array. a. IList b. .$ollect c. .$lone 11._______ are used to create data and methods that can be accessed without creating an instance of a class. a. 3tatic classes b. :ynamic classes c. Access modi#ers 12.5he _____ access modi#er speci#es that the constuctor has its access limited to the current assembly. a. .nternal. b. <rotected. c. <rivate. 13.5he ________ access modi#er speci#es that be base class will initiali'e on its own whenever its derived classes are created. a. <ublic b. <rivate c. <rotected 1).5he ____________ constructor initiali'es an ob,ect of the Array=ist class with the speci#ed initial capacity as the parameter. a. Array=ist3tring s! b. Array=ist.$ollection! c. Array=ist! d. Array=istint! 10.5he ________ class is a combination of the 2ashtable class and the Array=ist class a. 3orted=ist b. $ollection c. =ist d. :ictionary. 14._____ are kind of parameteri'ed data structures which can work with value types as reference types. a. .terators b. Array=ist c. "enerics d. /numerator. 16.1hich one of the following statements abount generics is incorrect? a. "enerics impove system performance since their development re(uires very less memory . b. Generics ensure implementation of the strongly-typed programming model. c. Generics lead to lesser run-time errors caused by casting or boxing. d. "enerics can be implemented using e&plicit or implicit casting. 18.A _____________ is a reference type that contains declarations of the events, inde&ers, methods, and properties. a. delegate. b. enumerator c. interface d. namespace 19.5he _______namespace is imported by default in the .>/5 7ramework and it appears as the #rst line of the program. a. $ollections b. :ata c. 1eb d. 3ystem 2;.A custom namespace is declared using the _______ keyword and is accessed with the ____ keyword similar to any built*in namespace. a. interface, system b. interface, using. c. namespace, system d. namespace,using. 21.____naming refers to access a class de#ned within a namespace by its name only a. 7ully (uali#ed b. <artially (uali#ed c. ?n(uali#ed d. @uali#ed 22.1hich of the following statements about the diAerent data types in $% are correct?$hon nhieu! a. Balue type variables store actual values and are stored on the heap. b. Ceference type variables store memory address of other variables in a stack c. -oth, value and reference type variables can be built*in or user*de#ned data types. d. int and class are e&les of value and reference type variables respectively. 23.1hich piece of code displays a Doat value as string? a. 7loat Dot>umE0;;.207Fstring st>umEDot>um.5o3tring!F$onsole.1rite=inest>um!F b. foat fotNum=5.!5"#string stNum=fotNum.$o%tring&'#(onsole.)riteLine&stNum'# c. Doat Dot>umE0;;.207F3tring st>umEDot>um.5o3tring!F$onsole.1rite=inest>um!F d. Doat Dot>umE0;;.207Fstring st>umEDot>um.tostring!F$onsole.1rite=inest>um!F 2).1hich of the following statements about the diAerent types of $% statements are correct?Gulti choose! a. 3election statements help to transfer the Dow from one block to another block in the program. b. .teration statements help you to repeatedly e&ecute a block of code within program. c. Hump statements transfer control after they check whether a particular condition is true. d. /&ception handling statements manage situations which hinder the normal e&ecution of the program. 20.1hich of the following keywords are associated with iteration statements? $hon nhieu! a. case b. foreach c. switch d. *hile