0% found this document useful (1 vote)
49 views18 pages

Net Mock CCEE Kharghar

Uploaded by

Aniketh Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (1 vote)
49 views18 pages

Net Mock CCEE Kharghar

Uploaded by

Aniketh Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 18
.Net CCEE test Total points 20/40 @ 26-Aug-2022 Student ID: * Name: * Centre: © Juhu ©@ Kbharghar 1. Which of the following keyword is used to overload user defined types by1/1 defining static member functions? O aop O +) opoverload © operator v © 4) operatoroverload X_ 2.0perators that can be overloaded are? O al @ O of Ov Correct answer @o+ X 3. Whatis the vector in operator overloading? O ajdlass © 5) method © ©) datatype © 4)none of the mentioned Correct answer © ©) data type on on X_ A.what is Operator Overloading? * on O Enables user-defined operator implementations for various operators such as: =, typeof @ Theabilty to declare more than one method withthe same name but a different signature © Enables user-defined operator implementations for various operators such as true, false Correct answer Enables user-defined operator implementations for various operators such as: true, false x 5.Which of the following is NOT an interface declared on in System.Collections namespace? A.\Comparer B. IEnumerable C. IEnumerator x D. IDictionaryComparer OoOO0@00 E, IDictionaryEnumerator Correct answer © D.Iictionarycomparer X_ 6.Suppose value of the Capacity property of ArrayList Collection is set to 4. 0/1 What will be the capacity of the Collection on adding fifth element to it? @a4 x O Bs O «16 O v.32 Correct answer @ B88 Y_ 7.Which of the following is the correct way to find out the number of ww elements currently present in an ArrayList Collection called arr? @ Aar.count v O B.arr.GrowSize O ©.arrMaxindex © D.arrCapacity © E arrUpperBound X_ 8. The... method removes and returns the object at the begining of the 0/1 Queue. © A) public virtual void Dequeue(); x © 8) public virtual void Delete; © ©) public virtual void Clear(); © D) public virtual object Dequeue(); Correct answer © _) public virtual object Dequeue(); X_ 9. Which Property we can use to gets or sets the number of elements that 0/1 the ArrayList can Contain, O A)Count @ 8) Item x O ©) Capacity O D)Length Correct answer © Capacity Y_10.Among the given collections which is the I/O index based? O a) ArrayList O »)Bitarray O 0)Stack O 4) Queue © ¢)bothaandb Y_ 11.Choose the correct statement among the followings? © 4) Indexers are location indicators © »}) indexers are used to access class objects © ©) Indexer is a form of property and works in the same way as a property © 4)Allof the mentioned Y 12. Choose the correct statement among the followings? © 4) Indexers are location indicators © 5) Indexers are used to access class objects © 0) Indexer is a form of property and works in the same way as a property © 4Allof the mentioned Ww Ww w X__ 13. Choose the keyword which declares the indexer? of ©@ 2@)base x O })this O ©) super O dextract Correct answer ©@ bj this Y 14, Choose the operator/operators which is/are not used to access the] 1/1 operator in indexers? a) get b) set ©) access v Oo@o0°0 4d) all of the mentioned 15. Which among the following are the advantages of using indexers? 1/1 a) To use collection of items at a large scale we make use of indexers as they utilize objects of class that represent the collection as an array b) Indexers are also convenient as they can also make use of different types of indexers like int, string ete ©) An indexer allows an object to be indexed such as an array ©0000 0 4d) Allof the mentioned v Y_ 16. Choose the correct statement about properties describing the indexers? a) No need to use the name of the property while using an indexed property b) An indexer property should accept at least one argument ©) Indexers can be overloaded 4d) Allof the mentioned @o0oo x 17. Choose the correct option among the following indexers which correctly allows to index in same way as an array? O @)Aclass © »)Aninterface O oA function © 4) Aproperty Correct answer @ aAclass 18.Select the modifiers which can be used with the properties? O Private O Public O Protected Internal © Allof the mentioned Ww on w x 19.To use the .NET Framework Data Provider for SQL Server, an application 0/1 must reference the namespace. © a) system Data.Client © +) system.Data.SqlClient © ©) system.Data.Sql © 4)None of the mentioned Correct answer © >) system.Data.sqlClient X _20.Choose the namespace which supports multithreading programming? 0/1 © a) system.net O +) system.Ling © 9) System.Threading © 4)Allof the mentioned Correct answer © ©) System.Threading VY 21.What does the following C# code snippet specify? Ta public Thread(ThreadStart start) © a) Defines a thread © 5) Declaration of a thread constructor © ©) Only Defines a thread @© 4) only Defines a thread & Declaration of a thread constructor v X__22.Which of these classes is used to make a thread? on O aysting O »b)system © ©) Thread ©@ Runnable x Correct answer © ©) Thread x 23.0n call of which type of method the new created thread will not start 0/1 executing? O @)Begind O +) start @ New) x © 4)Allofthe mentioned Correct answer ©@ »b)starto. Y 24.Which of these methods of Thread class is used to Suspend a thread 1/1 for a period of time? ©@ 2)sleep) v O 5) terminated O ©) suspend O 4d)stop) X__25.Which keyword is used for using the synchronization features defined 0/1 by the Monitor class? O a)lock O »+) synchronized © monitor x O 4)locked Correct answer @ a)lock X_ 26. Which of these keywords are used to implement synchronization? 0/1 O A-synchronize O Bsyn @ C.synch x © D. synchronized Correct answer ©@ D. synchronized X__ 27.Which method is called when a thread is blocked from running temporarily? O A Pulsed © 8.Pulseall() O c.wait( © D.Both AandB Y 28.Which of these class is used to make a thread? O a)String O +) system © ©) Thread O 4) Runnable on w 29.Which of these method of Thread class is used to Suspend a thread for 1/1 a period of time? @ 2 sleep O 5) terminated O suspend) O 4 stop) Y 30.what will be the output of following code? Ww public static void Main() { int k; display(k); static void display(int val = e@) { Console.write(val); vw Null compile time error v O@00 runtime error x 31.Which of the following statements is correct about a delegate? on © inheritance is a prerequisite for using delegates x C© delegates are not type safe © delegates provides wrappers for function pointers © none of the mentioned Correct answer © delegates provides wrappers for function pointers X 32. The infrastructure that supports these dynamic operations at run time is0/1 called the.. @ cir O cts O cas © oir Correct answer @ vr 33. In C#, having unreachable code is always a/an.... method function error itreative Oo@O0°0 Y 34.C# treats the multiple catch statements like cases ina statement for while ©@©ooo switch " w 35. Which component in Asp.net MVC can be used to pass data between 1/1 controller to view (Assume you have to pass current date and time) © ViewDatal*DateTime’] = DateTime.Now.ToString(); © ViewBag{"DateTime"] = DateTime.Now.ToStringQ); v © Viewstate["DateTime’l = DateTime.Now.ToString(); © DataView!"DateTime’] = DateTime.Now.ToString(); X36. Choose the correct statement among the followings? on ©@ indexers are location indicators x © Indexers are used to access class objects © Indexer is a form of property and works in the same way as a property © Allof the mentioned Correct answer @ Allofthe mentioned Y 37.State whether the following statements about the Microsoft Ww Intermediate Language (MSIL) are TRUE or FALSE. i) The MSIL code includes instructions to load, initialize and invoke methods on objects ii) The MSIL code is collected and assembled in the form of byte codes and is converted to a NET assembly © )ittrue, i-False © ) False, i-True ©@ true, ii-True v CO iFalse, ir-False ‘Y_38.What function modifier can be put on a method in a base class to allow 1/1 the child to override it? O Arbstarct O Sealed ©@ Virtua v © Mast override Y. 39. wun. ensures complete interoperability among applications, regardless 1/1 of the language used to create the application O cr O cts @ cs v O Fei X__40.How do you manage states in an ASP.NET application? on O Viewstate CO Application objects ©@ Session Objects x © Allof the above Correct answer ©@ Allofthe above This content is neither created nor endorsed by Google. - Terms of Sewice - Privacy Policy Google Forms

You might also like