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. Data Type Built into C#. Built into the XML Schema. Most common are: Int - Long - Float - Double - Decimal - String - Char and Bool.






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






3. 128 bit fixed precision (financial)






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






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






6. Access is limited to the current Assembly






7. System.UInt32






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






9. System.UInt16






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






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






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






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






14. System.Double






15. System.Int32






16. true or false






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






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






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






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






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






22. A Class that cannot be instantiated.






23. System.Char






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






25. Just-in-time compilation






26. System.UInt64






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






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






29. 32 bit integer data






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






31. Indicates that the Method can be overridden.






32. Text as Unicode characters






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






34. Runs in a command prompt window rather than a GUI (graphical User Interface) one.






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






36. Un-orderd sequence of elements of the same type. Stores a fixed number of static elements of a particular type.






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






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






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






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






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






42. System.Decimal






43. System.Int16






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






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






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






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






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






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






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