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. A Class that cannot be instantiated.






2. (&& or || or & or |)






3. The concept of defining subclasses of data objects that share some or all of the parent's class characteristics - enabling the reuse of code.






4. A Class that cannot be Inherited






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






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






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






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






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






10. Microsoft's generic software framework for application development.






11. 32 bit single precision floating point data






12. System.Single






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






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






15. Always runs left to right on all arithmetic operators. Parenthesis (or brackets () ) override precedence flow.






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






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






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






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






20. Variables defined by a class






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






22. System.Int64






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






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






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






26. Allows a class to define multiple implementations of a method based on the number and types of arguments passed (Overloading).






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






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






29. 32 bit integer data






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






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






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






33. true or false






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






35. true or false






36. 32 bit - unsigned integer data






37. A Class that inherits characteristics from another Class.






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






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






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






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






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






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






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






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






46. System.Int16






47. 64 bit integer data






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






49. Must have a data type






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