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. Statements are instructions describing how to run a programme. Statements declare the name of a variable. Statements are combined to create methods.






2. Syntax of a C# Method






3. System.SByte






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






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






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






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






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






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






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






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






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






13. A Class that inherits characteristics from another Class.






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






15. true or false






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






17. Variables defined by a class






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






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






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






21. 64 bit integer data






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






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






24. (&& or || or & or |)






25. A Class that cannot be Inherited






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






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






28. (< or > or <= or >=)






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






30. A standardized (ECMA) language for creating Windows .NET applications and services and libraries - with a syntax similar to Java and C++.






31. 64 bit - unsigned integer data






32. Must have a data type






33. Extra information within a method






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






35. Command which runs repeatedly while (some) condition is true.






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






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






38. System.UInt16






39. 64 bit integer data






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






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






42. Access is limited to the current Assembly and Derived Types






43. The member type of a Class that performs an action.






44. 32 bit integer data






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






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






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






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






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






50. Integrated Development Environment