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. Command Language Runtime






2. Extra information within a method






3. 32 bit - unsigned integer data






4. 32 bit integer data






5. System.Int64






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






7. System.SByte






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






9. true or false






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






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






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






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






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






15. System.Char






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






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






18. Windows Presentation Foundation






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






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. count = count+1 or count++ or count__. Both count variables are Unary Operators






22. Integrated Development Environment






23. A Class that cannot be Inherited






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






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






26. 32 bit single precision floating point data






27. true or false






28. A Class that can only have Static Members






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






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






31. The C# command line compiler which transforms C# code into IL code and produces an assembly (.dll or .exe)






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






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






34. System.Int16






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






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






37. Text as Unicode characters






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






39. Most common kind of reference type. They define objects. They must have at least one method and one field.






40. A Class that inherits characteristics from another Class.






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






42. System.Int32






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






44. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.






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






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






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






48. Access is limited to the current Assembly






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






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