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. Symbols which transform and combine expressions






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






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






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






5. A type of statement that produces a value that might be tested or assigned to a variable.






6. true or false






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






8. Access is limited to the current Assembly






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






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






11. 32 bit integer data






12. (= or += or -= or = or /=)






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






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






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






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






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






18. Must have a data type






19. (&& or || or & or |)






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






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






22. 64 bit - unsigned integer data






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






24. 32 bit - unsigned integer data






25. Contains the class definitions that allow access to the functionality provided by .NET.






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






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






28. Characteristics of an object. Something an object has. Provides a specific access point to data within a field






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






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






31. Variables defined by a class






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






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






34. A Class that cannot be instantiated.






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






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






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






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






39. A Class that cannot be Inherited






40. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.






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






42. Allows a Method to be defined in a separate file (within the same Project). If no definition is found the compiler excludes the Method as an optimization.






43. Framework Class Library






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






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






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






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






48. System.Int64






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






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