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






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






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






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






5. true or false






6. Extra information within a method






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






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






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






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






11. 64 bit integer data






12. Series of instructions which tell a computer what to do.






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






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






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






16. System.Byte






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






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






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






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






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






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






23. System.Int64






24. 64 bit - unsigned integer data






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






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






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






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






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






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






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






32. (== or !=)






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






34. System.Int32






35. Container for one or more Visual Studio Projects.






36. 32 bit integer data






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






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






39. 64 bit double precision floating point data






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






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






42. A Class that cannot be instantiated.






43. 16 bit - unsigned integer data (0 to 65535)






44. System.Decimal






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






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






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






48. 128 bit fixed precision (financial)






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






50. System.Int16