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. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).






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






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






4. Calculation whose result is either true or false but cannot be both E.g. == Equal to. != Not Equal too. < Less than. <= Less than of equal to. > Greater than. >= Greaten than or equal to. && AND (Conditional) ->|| OR (Conditional)






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






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






7. Windows Presentation Foundation






8. (&& or || or & or |)






9. Command Language Runtime






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






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






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






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






14. true or false






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






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






17. Only requires one operand usually a count+1 or a count++ or a count--






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






19. 32 bit integer data






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






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






22. Container for one or more Visual Studio Projects.






23. System.Single






24. An instance of a class that exists at run-time and is typically referenced via a variable name.






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






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






27. Code which signifies a carriage return. Symbolises a new line in a text box.






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






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






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






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






32. Framework Class Library






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






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






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






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






37. 32 bit - unsigned integer data






38. 32 bit integer data






39. System.Int32






40. System.UInt64






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






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






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






44. A Class that inherits characteristics from another Class.






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






46. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /






47. System.Char






48. Just-in-time compilation






49. System.Int64






50. System.Int16