Test your basic knowledge |

C# Programming Basics

Subject : it-skills
Instructions:
  • Answer 50 questions in 15 minutes.
  • If you are not ready to take this test, you can study here.
  • Match each statement with the correct term.
  • Don't refresh. All questions and answers are randomly picked and ordered every time you load a test.

This is a study tool. The 3 wrong answers for each question are randomly chosen from answers to other questions. So, you might find at times the answers obvious, but you will see it re-enforces your understanding as you take the test each time.
1. 16 bit- unsigned word (U+0000 to U+ffff)






2. Specifies that the Method includes no implementation and must be overridden in a deriving class - where it will get its definition. Can only be part of an Abstract Class.






3. System.UInt64






4. Restricts access to a Member to the current Class and any Derived Class.






5. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.






6. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.






7. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.






8. System.Int16






9. The .NET run-time environment that enables code to be compiled and executed.






10. Implies that the programming language places severe restrictions on the intermixing that is permitted to occur - between objects or data of different types.






11. Access is limited to the current Assembly






12. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism






13. Allows the definition of a Class to span multiple files (within the same Project)






14. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.






15. System.UInt32






16. 8 bit - signed byte (-128 - 127)






17. 16 bit - signed integer data (-32768 to 32767)






18. Something that has a different number of parameters to it's predecessor






19. 64 bit double precision floating point data






20. The member type of a Class that performs an action.






21. Word that stores a value. Storage location that holds a value. Type and name of variable must be declared in a statement. Must be explicitly declared before use. Uses CamelCase notation.






22. Microsoft's generic software framework for application development.






23. 8 bit - unsigned byte (0 - 255)






24. Block of memory where objects live. Whenever a new object is created it is allowed onto the heap. Old objects are regularly deallocate from the heap to save available memory






25. A symbol that specifies an operation to be performed on one or more variables.






26. Must have a data type






27. The "Type" name of data that is stored on the Heap






28. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.






29. Indicates that the Method can be overridden.






30. A Class that cannot be Inherited






31. System.Single






32. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.






33. Compilation of classes. In C# Usually ends in .dll or .exe






34. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.






35. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional






36. Groups classes together so that they have a unique identifier






37. System.Decimal






38. Series of instructions which tell a computer what to do.






39. A representation of an area in the computer memory in which a value of a particular data type can be stored.






40. System.Byte






41. 32 bit integer data






42. Mathematical (+ or - or / or %)






43. System.Char






44. System.UInt16






45. Introduces a new class. Marked by curly brackets { }






46. The process of hiding and restricting access to the implementation details of a data structure.






47. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.






48. 16 bit - unsigned integer data (0 to 65535)






49. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).






50. A Class that can only have Static Members