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






2. Access is limited to the current Assembly






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






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






5. Syntax of a C# Method






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






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






8. System.Single






9. Integrated Development Environment






10. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.






11. Command Language Runtime






12. 64 bit integer data






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






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






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






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






17. 64 bit double precision floating point data






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






19. true or false






20. System.Int32






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






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






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






24. Text as Unicode characters






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






26. Framework Class Library






27. Container for one or more Visual Studio Projects.






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






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






30. 32 bit integer data






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






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






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






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






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






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






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






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






39. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.






40. A Class that cannot be instantiated.






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






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






43. System.Double






44. Most common kind of reference type. They define objects. They must have at least one method and one field.






45. (< or > or <= or >=)






46. Symbols which transform and combine expressions






47. The process of hiding and restricting access to the implementation details of a data structure.






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






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






50. The "Type" name of data that is stored on the Heap