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 process of hiding and restricting access to the implementation details of a data structure.






2. true or false






3. System.SByte






4. 32 bit single precision floating point data






5. Windows Presentation Foundation






6. A method that is called whenever an Object is created. The method uses the same name as the Class.






7. Most common kind of reference type. They define objects. They must have at least one method and one field.






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






9. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.






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






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






12. System.Byte






13. System.Int16






14. Container for one or more Visual Studio Projects.






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






16. Sits behind GUI (Graphical User Interface) and provides event listeners






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






18. A Class from which other classes can inherit characteristics.






19. A Class that cannot be Inherited






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






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






22. (< or > or <= or >=)






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






24. Names reserved by the compiler that coders are not allowed to use as identifiers.






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






26. Code which implements GUI (graphical User Interface).






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






28. Access is limited to the current Assembly and Derived Types






29. true or false






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






31. Extra information within a method






32. System.Decimal






33. Runs in a command prompt window rather than a GUI (graphical User Interface) one.






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






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






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






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






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






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






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






41. count = count+1 or count++ or count__. Both count variables are Unary Operators






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






43. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.






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






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






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






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






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






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






50. 32 bit - unsigned integer data