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. Block of memory where objects live. Whenever a new object is created it is allowed onto the heap. Old objects are regularly deallocate from the heap to save available memory






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






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. When a sub class passes down all the behaviours of the original parent class






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






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






7. 32 bit single precision floating point data






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






9. Syntax of a C# Method






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






11. Text as Unicode characters






12. (< or > or <= or >=)






13. System.Int32






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






16. Framework Class Library






17. The four major concepts of Object Oriented Programming: Abstraction - Encapsulation - ___________ - Polymorphism






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






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






20. Access is limited to the current Assembly






21. The C# directive required to bring a namespace into scope. Eliminates the need to fully qualify a Type.






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






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






24. 64 bit - unsigned integer data






25. Just-in-time compilation






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






27. System.Single






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






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






30. A Class that inherits characteristics from another Class.






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






32. A Class that cannot be instantiated.






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






34. System.Int64






35. System.SByte






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






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






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






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






40. The "Type" name of data that is stored on the Heap






41. (&& or || or & or |)






42. 64 bit integer data






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






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






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






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






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






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






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






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