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






2. Extra information within a method






3. System.Int32






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






5. System.Byte






6. Code which signifies a carriage return. Symbolises a new line in a text box.






7. (&& or || or & or |)






8. true or false






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






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






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






12. 64 bit integer data






13. A Class that cannot be instantiated.






14. System.Double






15. Syntax of a C# Method






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






17. System.UInt16






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






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






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






21. Framework Class Library






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






23. Integrated Development Environment






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






25. count = count+1 or count++ or count__. Both count variables are Unary Operators






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






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






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






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






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






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






32. (< or > or <= or >=)






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






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






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






36. System.Decimal






37. 8 bit - unsigned byte (0 - 255)






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






39. 64 bit integer data






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






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






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






43. Just-in-time compilation






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






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






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






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






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






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






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