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. 8 bit - unsigned byte (0 - 255)






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






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






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






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






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






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






8. System.UInt16






9. A Class that can only have Static Members






10. System.Single






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






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






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






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






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






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






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






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






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






20. System.Int64






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






22. Groups classes together so that they have a unique identifier






23. Symbols which transform and combine expressions






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






25. (&& or || or & or |)






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






27. (< or > or <= or >=)






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






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






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






31. System.Char






32. true or false






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






34. 64 bit double precision floating point data






35. Variables defined by a class






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






37. System.Decimal






38. Something an object can do. A named sequence of events. Should always have a meaningful name eg calculateIncomeTax.






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






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






41. Just-in-time compilation






42. 64 bit integer data






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






44. true or false






45. Extra information within a method






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






47. Windows Presentation Foundation






48. Specifies that a Class cannot be instantiated but can only be used as the Base Class from which other Classes are derived.






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






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