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. (= or += or -= or = or /=)






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






3. 128 bit fixed precision (financial)






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






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






6. Syntax of a C# Method






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






8. System.Int64






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






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






11. A Class that cannot be instantiated.






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






13. true or false






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






15. 32 bit single precision floating point data






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






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






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






19. System.Int32






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






21. System.UInt64






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






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






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






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






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






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






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






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






30. Must have a data type






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






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






33. (&& or || or & or |)






34. 8 bit - unsigned byte (0 - 255)






35. 64 bit integer data






36. Integrated Development Environment






37. true or false






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






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






40. Field whose value can never change. Declared with 'const' keyword






41. A symbol that specifies an operation to be performed on one or more variables.






42. System.Double






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






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






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






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






47. An abstract container used to hold a logically related group of data and functionality (e.g. System.* or System.Lynq or System.Windows etc.).






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






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






50. (== or !=)