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






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






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






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






5. 32 bit single precision floating point data






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






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






8. Code which signifies a carriage return. Symbolises a new line in a text box.






9. System.Char






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






11. Extra information within a method






12. 32 bit - unsigned integer data






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






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






15. System.SByte






16. A Class that can only have Static Members






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






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






19. The process of compiling IL source into CPU-native code for execution.






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






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






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






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






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






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






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






27. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.






28. 64 bit double precision floating point data






29. (&& or || or & or |)






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






31. (== or !=)






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






33. 32 bit integer data






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






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






36. A Class that cannot be Inherited






37. Indicates that the Method can be overridden.






38. Text as Unicode characters






39. 64 bit - unsigned integer data






40. Symbols which transform and combine expressions






41. The process of hiding and restricting access to the implementation details of a data structure.






42. Integrated Development Environment






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






44. System.UInt32






45. Variables defined by a class






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






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






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






49. 64 bit integer data






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