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. 8 bit - signed byte (-128 - 127)






3. 32 bit integer data






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






5. 32 bit single precision floating point data






6. 128 bit fixed precision (financial)






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






8. System.Byte






9. System.Int16






10. 64 bit integer data






11. Container for one or more Visual Studio Projects.






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






13. Calculation whose result is either true or false but cannot be both E.g. == Equal to. != Not Equal too. < Less than. <= Less than of equal to. > Greater than. >= Greaten than or equal to. && AND (Conditional) ->|| OR (Conditional)






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






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. When a sub class passes down all the behaviours of the original parent class






17. The result of successful compilation of source code written in any .NET targeted language - e.g. C# or Visual Basic or C++.






18. System.Int32






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






20. System.UInt32






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






22. (== or !=)






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






24. 64 bit integer data






25. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.






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






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






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






29. Windows Presentation Foundation






30. Framework Class Library






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






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






33. Runs in a command prompt window rather than a GUI (graphical User Interface) one.






34. The .NET run-time environment that enables code to be compiled and executed.






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






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






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






38. System.Decimal






39. true or false






40. 32 bit integer data






41. true or false






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






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






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






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






46. A Class that cannot be Inherited






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






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






49. Command Language Runtime






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