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. (< or > or <= or >=)






2. Container for one or more Visual Studio Projects.






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






4. System.Byte






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






6. The member type of a Class that performs an action.






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






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






9. System.Int16






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






11. Symbols which transform and combine expressions






12. Just-in-time compilation






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






14. Access is limited to the current Assembly






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






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






17. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.






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






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






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






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






22. Text as Unicode characters






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






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






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






26. System.Int64






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






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






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






30. System.Double






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






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






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






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






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






36. A Class from which other classes can inherit characteristics.






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






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






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






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






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






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






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






44. 32 bit - unsigned integer data






45. 32 bit integer data






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






47. true or false






48. Syntax of a C# Method






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






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