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






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






3. 64 bit - unsigned integer data






4. Symbols which transform and combine expressions






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






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






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






8. Access is limited to the current Assembly






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






10. 64 bit integer data






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






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






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






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






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






16. true or false






17. System.Decimal






18. System.Int16






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






20. Field whose value can never change. Declared with 'const' keyword






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






22. System.Int64






23. Indicates that the Method can be overridden.






24. A Class that can only have Static Members






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






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






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






28. 64 bit integer data






29. true or false






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






31. Extra information within a method






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






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






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






35. Command Language Runtime






36. System.Char






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






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






39. A Class that cannot be instantiated.






40. (== or !=)






41. 128 bit fixed precision (financial)






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






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






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






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






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






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. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.






49. System.SByte






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