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






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






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






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






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






6. System.SByte






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






8. Indicates that the Method can be overridden.






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






10. A Class that inherits characteristics from another Class.






11. Extra information within a method






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






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






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






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






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






17. (&& or || or & or |)






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






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






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






21. true or false






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






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






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






25. System.Single






26. 32 bit - unsigned integer data






27. Text as Unicode characters






28. System.Byte






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






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






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






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






33. A Class that cannot be Inherited






34. (< or > or <= or >=)






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






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






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






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






39. Integrated Development Environment






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






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






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






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






44. Calculation whose result is either true or false but cannot be both E.g. == Equal to. != Not Equal too. < Less than. <= Less than of equal to. > Greater than. >= Greaten than or equal to. && AND (Conditional) ->|| OR (Conditional)






45. The "Type" name of data that is stored on the Stack






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






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






48. (== or !=)






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






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