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. Groups classes together so that they have a unique identifier






2. 32 bit integer data






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






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






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






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






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






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






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






10. 16 bit- unsigned word (U+0000 to U+ffff)






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






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






13. 64 bit - unsigned integer data






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. Access is limited to the current Assembly and Derived Types






16. (< or > or <= or >=)






17. The member type of a Class that performs an action.






18. System.Int64






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






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






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






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






23. System.Decimal






24. Indicates that the Method can be overridden.






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






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






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






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






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






30. A Class that inherits characteristics from another Class.






31. true or false






32. System.UInt32






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






34. 32 bit - unsigned integer data






35. Command Language Runtime






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






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






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






39. Instance of a type created when a program runs. Can be visible or invisible. Has properties and events and methods. Properties- determine appearance. Events - trigger a response. Methods - something the object does






40. 32 bit single precision floating point data






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






42. Integrated Development Environment






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






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






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






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






47. A Class that cannot be instantiated.






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






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






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