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. Command which runs repeatedly while (some) condition is true.






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






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






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






5. Extra information within a method






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






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






8. System.Int16






9. System.Int64






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






11. A Class that cannot be instantiated.






12. A Member that cannot be accessed/invoked through an Object Instance.






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






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






15. Integrated Development Environment






16. System.Byte






17. 32 bit integer data






18. true or false






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






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






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






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






23. Container for one or more Visual Studio Projects.






24. A Class that can only have Static Members






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






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






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






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






29. 64 bit double precision floating point data






30. 32 bit integer data






31. System.UInt64






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






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






34. 64 bit - unsigned integer data






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






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






37. 32 bit single precision floating point data






38. (< or > or <= or >=)






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






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






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






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






43. Rules defining or outlining the format and construction of statements. Semantics is what statements actually DO Syntax are RULES for how to lay statements out. Example syntax rule; All statements must end in a semicolon.






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






45. Windows Presentation Foundation






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






47. 128 bit fixed precision (financial)






48. System.UInt32






49. System.Decimal






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