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. The act of generalizing or thinking about an object in general terms. The act of identifying the data members and behavior of a Class.






2. 128 bit fixed precision (financial)






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






4. 32 bit integer data






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






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






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






8. Container for one or more Visual Studio Projects.






9. System.UInt32






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






11. A Class that can only have Static Members






12. Represents the encapsulation of data and behaviors into a single unit.






13. Syntax of a C# Method






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






15. 64 bit integer data






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






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






18. System.UInt64






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






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






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






22. 32 bit integer data






23. Framework Class Library






24. Documentation text embedded within code which is not to be run as code. Two types single and multiple: single // multiline / insert comment here /






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






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






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






28. System.Int16






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






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






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






32. Variables defined by a class






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






34. System.Single






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






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






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






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






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






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






41. Access is limited to the current Assembly






42. 32 bit - unsigned integer data






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






44. Text as Unicode characters






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






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






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






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






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






50. Just-in-time compilation