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. Names reserved by the compiler that coders are not allowed to use as identifiers.






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






3. Access is limited to the current Assembly and Derived Types






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






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






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






7. Integrated Development Environment






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






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






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






11. A Class that cannot be instantiated.






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






13. 64 bit - unsigned integer data






14. Indicates that the Method can be overridden.






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






16. (&& or || or & or |)






17. System.Int64






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






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






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






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






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






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






24. System.SByte






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






26. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5






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






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






29. A Class that cannot be Inherited






30. Sits behind GUI (Graphical User Interface) and provides event listeners






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






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






33. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.






34. Variables defined by a class






35. System.Int32






36. Restricts access to a Member to the current Class.






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






38. 64 bit integer data






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






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






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






42. Allows the definition of a Class to span multiple files (within the same Project)






43. System.Double






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






45. Syntax of a C# Method






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






47. Must have a data type






48. Framework Class Library






49. System.UInt16






50. 64 bit integer data