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. A representation of an area in the computer memory in which a value of a particular data type can be stored.






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






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






4. true or false






5. A Class that inherits characteristics from another Class.






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






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






8. Names used to identify program elements (e.g. namespaces & classes & methods & variables). Must always start with a letter. Always case sensitive. When multiword must be presented in CamelCase. keywords are an example of an identifier.






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






10. Access is limited to the current Assembly






11. A Class that can only have Static Members






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






13. Restricts access to a Member to the current Class and any Derived Class.






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






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






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






17. System.Decimal






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






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






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






21. 32 bit integer data






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






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






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






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






26. Indicates that the Method can be overridden.






27. (< or > or <= or >=)






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






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






30. (== or !=)






31. Symbols which transform and combine expressions






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






33. Must have a data type






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






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






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






37. true or false






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






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






40. System.Single






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






42. Windows Presentation Foundation






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






44. 64 bit integer data






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






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






47. System.UInt32






48. 32 bit integer data






49. Container for one or more Visual Studio Projects.






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