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 act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.






2. true or false






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






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






5. A Class that can only have Static Members






6. System.Int16






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






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






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






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






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






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






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






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






15. (== or !=)






16. System.UInt64






17. Command which runs repeatedly while (some) condition is true.






18. The output produced by the C# Compiler - typically a .dll or .exe. Produced by a Project in Visual Studio






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






20. System.Byte






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






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






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






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






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






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






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






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






29. Used to display text that end user does not need to edit.






30. Extra information within a method






31. Must have a data type






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






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






34. Rules defining or outlining the format and construction of statements. Semantics is what statements actually DO Syntax are RULES for how to lay statements out. Example syntax rule; All statements must end in a semicolon.






35. Integrated Development Environment






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






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






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






39. System.Char






40. 32 bit single precision floating point data






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






42. 64 bit double precision floating point data






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






44. Keyword which exposes members to other classes OR Identifier which makes program elements public






45. System.UInt32






46. Restricts access to a Member to the current Class.






47. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.






48. Variables defined by a class






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






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