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. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.






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






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






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






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






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






7. 32 bit integer data






8. A Class that inherits characteristics from another Class.






9. Text as Unicode characters






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






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






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






13. Command Language Runtime






14. 128 bit fixed precision (financial)






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






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






17. Extra information within a method






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






19. A representation of an area in the computer memory in which a value of a particular data type can be stored.






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






21. Syntax of a C# Method






22. System.SByte






23. System.UInt64






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






25. Framework Class Library






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






27. true or false






28. 64 bit integer data






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






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






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






32. System.UInt16






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






34. 64 bit integer data






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






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






37. Variables defined by a class






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






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






40. A Class that cannot be Inherited






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






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






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






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






45. System.Decimal






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






47. (&& or || or & or |)






48. 32 bit - unsigned integer data






49. System.Int16






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