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 "Type" name of data that is stored on the Stack






2. Must have a data type






3. 64 bit - unsigned integer data






4. A Class that inherits characteristics from another Class.






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






6. System.Int16






7. Instance of a type created when a program runs. Can be visible or invisible. Has properties and events and methods. Properties- determine appearance. Events - trigger a response. Methods - something the object does






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






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






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






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






12. Syntax of a C# Method






13. Box which can be typed into at runtime. Can display large amounts of scrollable text for the user. To create a scrollable one in Visual Studio set the multiline property to 'TRUE' and the Scrollbars property to 'VERTICAL'.






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






15. Indicates that the Method can be overridden.






16. System.UInt32






17. 64 bit integer data






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. Access is limited to the current Assembly






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






21. 64 bit double precision floating point data






22. A Class that cannot be instantiated.






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






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






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






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






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






28. System.SByte






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






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






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






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






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






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






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






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






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






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






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






40. 32 bit integer data






41. Variables defined by a class






42. System.Char






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






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






45. Object Oriented Programming relies on dot.notation. Dot Notation enables public methods to be fully accessible from outside an object. Member names are separated by a dot (.). Syntax is method-defined-in-class.bject-in-runtime-of-class






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






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






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






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. Microsoft's generic software framework for application development.