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. Field whose value can never change. Declared with 'const' keyword






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






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






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






5. 128 bit fixed precision (financial)






6. Syntax of a C# Method






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






8. Text as Unicode characters






9. System.Single






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






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






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






13. (< or > or <= or >=)






14. 32 bit - unsigned integer data






15. A Class that inherits characteristics from another Class.






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






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






18. Microsoft's generic software framework for application development.






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






20. Container for one or more Visual Studio Projects.






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






22. System.Double






23. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)






24. 16 bit - unsigned integer data (0 to 65535)






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






26. 64 bit - unsigned integer data






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






28. Groups classes together so that they have a unique identifier






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






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






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






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






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






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






35. System.Byte






36. System.UInt32






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






38. 32 bit integer data






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






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






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






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






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






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






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






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






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






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






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






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