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. Extra information within a method






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






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






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






5. Must have a data type






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






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






8. Framework Class Library






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






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






11. 32 bit integer data






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






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






14. A Class that can only have Static Members






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






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






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






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






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






20. System.Decimal






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






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






23. 64 bit integer data






24. (< or > or <= or >=)






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






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






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






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






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






30. Command Language Runtime






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






32. Allow access to types that exist in outside assemblies.






33. (== or !=)






34. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.






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






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






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






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






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






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






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






42. true or false






43. 128 bit fixed precision (financial)






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






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






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






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






48. System.UInt16






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






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