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. A Class that cannot be Inherited






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






3. System.UInt32






4. Indicates that the Method can be overridden.






5. 32 bit integer data






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






7. A Class that can only have Static Members






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






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






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






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






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






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






14. Framework Class Library






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






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






17. Mathematical (+ or - or / or %)






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






19. (== or !=)






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






21. System.Double






22. 64 bit integer data






23. A Class that cannot be instantiated.






24. System.Int64






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






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






27. System.Byte






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






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






30. Specifies that the Method includes no implementation and must be overridden in a deriving class - where it will get its definition. Can only be part of an Abstract Class.






31. Command Language Runtime






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






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






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






35. 32 bit integer data






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






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






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






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






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






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






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






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






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






45. A combination of language identifiers and data and operators and expressions that constitute a single line of syntactically correct & executable code.






46. System.Single






47. 64 bit - unsigned integer data






48. System.Decimal






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






50. Text as Unicode characters