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. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.






2. 32 bit integer data






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






4. Symbols which transform and combine expressions






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






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






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






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






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






10. A Class that can only have Static Members






11. A Class that cannot be Inherited






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






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






14. System.UInt64






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






16. Command Language Runtime






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






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






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






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






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






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






23. Indicates that the Method can be overridden.






24. System.Double






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






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






27. Something that has a different number of parameters to it's predecessor






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






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






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






31. 64 bit integer data






32. 32 bit integer data






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






34. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /






35. Extra information within a method






36. Syntax of a C# Method






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






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






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






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






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






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






43. 128 bit fixed precision (financial)






44. Must have a data type






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






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






47. Windows Presentation Foundation






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






49. System.UInt16






50. Variables defined by a class