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






2. System.Int16






3. A representation of an area in the computer memory in which a value of a particular data type can be stored.






4. Indicates that the Method can be overridden.






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






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






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






8. Must have a data type






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






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






11. (< or > or <= or >=)






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






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






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






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






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






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






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






19. Container for one or more Visual Studio Projects.






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






21. Integrated Development Environment






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






23. Extra information within a method






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






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






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






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






28. true or false






29. Four things common to all software development: _______ - Flow of Control - Identifiers & Arguments - Testing / Debugging






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






31. 32 bit single precision floating point data






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






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






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






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






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






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






38. Command Language Runtime






39. Only requires one operand usually a count+1 or a count++ or a count--






40. System.Char






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






42. true or false






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






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






45. Syntax of a C# Method






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






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






48. System.UInt64






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






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