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. The member type of a Class that performs an action.






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






3. 64 bit integer data






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






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






6. 32 bit - unsigned integer data






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






8. (== or !=)






9. Variables defined by a class






10. Access is limited to the current Assembly and Derived Types






11. 32 bit single precision floating point data






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






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






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






15. 32 bit integer data






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






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






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






19. Symbols which transform and combine expressions






20. The CLR tool used for just-in-time compilation which converts IL code to CPU specific code.






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






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






23. System.Int32






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






25. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism






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






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






28. true or false






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






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






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






32. Just-in-time compilation






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






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






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






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






37. true or false






38. Indicates that the Method can be overridden.






39. 128 bit fixed precision (financial)






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






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






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






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






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






45. System.SByte






46. System.UInt64






47. (&& or || or & or |)






48. 64 bit double precision floating point data






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






50. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.