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. A representation of an area in the computer memory in which a value of a particular data type can be stored.






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






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






4. System.Int32






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






6. System.Int64






7. 32 bit - unsigned integer data






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






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






10. A Class that inherits characteristics from another Class.






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






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






13. Indicates that the Method can be overridden.






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






15. The "Type" name of data that is stored on the Stack






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






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






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






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






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






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






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






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






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






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






26. (< or > or <= or >=)






27. Extra information within a method






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






29. 32 bit integer data






30. Keyword which exposes members to other classes OR Identifier which makes program elements public






31. Windows Presentation Foundation






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






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






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






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






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






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






38. Container for one or more Visual Studio Projects.






39. Framework Class Library






40. Command Language Runtime






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






42. A Class that can only have Static Members






43. Access is limited to the current Assembly






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






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






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






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






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






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






50. System.Int16