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. The member type of a Class that performs an action.






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






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






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






5. When a sub class passes down all the behaviours of the original parent class






6. (< or > or <= or >=)






7. 128 bit fixed precision (financial)






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






9. Represents date and time data with a 100 ns resolution






10. Names used to identify program elements (e.g. namespaces & classes & methods & variables). Must always start with a letter. Always case sensitive. When multiword must be presented in CamelCase. keywords are an example of an identifier.






11. The lowest level or fundamental data types needed for representing data.






12. A Class that inherits characteristics from another Class.






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






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






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






16. Field whose value can never change. Declared with 'const' keyword






17. A Member that cannot be accessed/invoked through an Object Instance.






18. System.Double






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






20. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5






21. Extra information within a method






22. 32 bit integer data






23. Must have a data type






24. The "Type" name of data that is stored on the Stack






25. System.UInt16






26. Encapsulation is the process of providing access to an object only through it's messages while keeping the details private. Encapsulation controls the use of a class.






27. A Class that can only have Static Members






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






29. 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






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






31. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)






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






33. The process of compiling IL source into CPU-native code for execution.






34. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.






35. Command Language Runtime






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






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






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






39. System.SByte






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






41. 16 bit- unsigned word (U+0000 to U+ffff)






42. System.Byte






43. 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.






44. System.Int64






45. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).






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






47. true or false






48. Windows Presentation Foundation






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






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