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. Thing which gives something a value. E.g. Assignment Expression uses the '=' operator to assign a variable value such as x = y * 5






2. System.Double






3. 32 bit - unsigned integer data






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






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






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






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






8. 32 bit integer data






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






10. Code which signifies a carriage return. Symbolises a new line in a text box.






11. System.Char






12. Syntax of a C# Method






13. A Class that cannot be instantiated.






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






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






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






17. 64 bit - unsigned integer data






18. 32 bit single precision floating point data






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






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






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






22. System.Int32






23. Restricts access to a Member to the current Class and any Derived Class.






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






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






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






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






28. true or false






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






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






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






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






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






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






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






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






37. Variables defined by a class






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






39. A Class that cannot be Inherited






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






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






42. (&& or || or & or |)






43. System.Int64






44. Block of memory for storing local variables and parameters. Automatically grows and shrinks as function is entered and excited.






45. System.SByte






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






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






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






49. 64 bit double precision floating point data






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