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 four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism






2. true or false






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






4. 32 bit integer data






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






6. System.Int16






7. (== or !=)






8. A Class that inherits characteristics from another Class.






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






10. 128 bit fixed precision (financial)






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






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






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






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






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






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






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






18. System.Single






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






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






21. Mathematical (+ or - or / or %)






22. (&& or || or & or |)






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






24. System.Char






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






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






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






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






29. Framework Class Library






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. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.






32. (< or > or <= or >=)






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






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






35. 64 bit - unsigned integer data






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






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






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






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






40. Access is limited to the current Assembly






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






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






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






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






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






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






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






48. System.UInt64






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






50. A Class that cannot be instantiated.