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. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /






2. System.Byte






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






4. Variables defined by a class






5. Must have a data type






6. Text as Unicode characters






7. System.Decimal






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






9. (< or > or <= or >=)






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






11. A Class that cannot be instantiated.






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






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






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






15. Framework Class Library






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






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






18. 32 bit single precision floating point data






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






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






21. Restricts access to a Member to the current Class and any Derived Class.






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






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






24. 32 bit - unsigned integer data






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






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






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. Most common kind of reference type. They define objects. They must have at least one method and one field.






30. A Class that cannot be Inherited






31. Command Language Runtime






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






33. (&& or || or & or |)






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. Only requires one operand usually a count+1 or a count++ or a count--






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






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






38. true or false






39. Integrated Development Environment






40. System.SByte






41. 64 bit - unsigned integer data






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






43. true or false






44. 64 bit double precision floating point data






45. System.Double






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






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






48. Indicates that the Method can be overridden.






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






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