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. Only requires one operand usually a count+1 or a count++ or a count--






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






3. Container for one or more Visual Studio Projects.






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






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






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






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






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






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






10. System.Single






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






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






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






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






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






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






17. System.SByte






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






19. true or false






20. System.Int64






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






22. A Class that can only have Static Members






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






24. If (boolean expression) //true -> statement 1 statement1; else //false -> statement2 statement; //else statement2 optional






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






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






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






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






29. A Class that cannot be instantiated.






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






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






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






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






34. System.Int32






35. Must have a data type






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






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






38. Symbols which transform and combine expressions






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






40. System.Byte






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






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






43. (== or !=)






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






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






46. (&& or || or & or |)






47. System.Double






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






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






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