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






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






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






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






5. true or false






6. (< or > or <= or >=)






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






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






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






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






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






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






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






14. Text as Unicode characters






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






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






17. System.Byte






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






19. System.Int16






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






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






22. Variables defined by a class






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






24. 64 bit - unsigned integer data






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






26. Something that has a different number of parameters to it's predecessor






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






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






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






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






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






32. Command Language Runtime






33. System.Double






34. 32 bit integer data






35. Specifies that the Method includes no implementation and must be overridden in a deriving class - where it will get its definition. Can only be part of an Abstract Class.






36. Extra information within a method






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






38. A Class that cannot be instantiated.






39. System.UInt64






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






41. Indicates that the Method can be overridden.






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






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






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






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






46. A Class that inherits characteristics from another Class.






47. Syntax of a C# Method






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






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






50. Integrated Development Environment