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. (= or += or -= or = or /=)






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






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






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






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






6. System.SByte






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






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






9. System.UInt64






10. Text as Unicode characters






11. A Class that cannot be Inherited






12. System.UInt16






13. (< or > or <= or >=)






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






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






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






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






18. Command Language Runtime






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






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






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






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






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






24. 32 bit single precision floating point data






25. Framework Class Library






26. 32 bit integer data






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






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






29. (== or !=)






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






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






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






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






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






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






36. Syntax of a C# Method






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






38. 128 bit fixed precision (financial)






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






40. A Class that inherits characteristics from another Class.






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






42. System.Decimal






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






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






45. Represents the encapsulation of data and behaviors into a single unit.






46. Symbols which transform and combine expressions






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






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






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






50. Introduces a new class. Marked by curly brackets { }