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 method that is called whenever an Object is created. The method uses the same name as the Class.






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






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






4. Calculation whose result is either true or false but cannot be both E.g. == Equal to. != Not Equal too. < Less than. <= Less than of equal to. > Greater than. >= Greaten than or equal to. && AND (Conditional) ->|| OR (Conditional)






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






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






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






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






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






10. 64 bit double precision floating point data






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






12. 64 bit integer data






13. 64 bit - unsigned integer data






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






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






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






17. Windows Presentation Foundation






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






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






20. Variables defined by a class






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






22. (< or > or <= or >=)






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






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






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






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






27. 8 bit - signed byte (-128 - 127)






28. A Class that inherits characteristics from another Class.






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






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






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






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






33. Sits behind GUI (Graphical User Interface) and provides event listeners






34. Framework Class Library






35. 32 bit - unsigned integer data






36. Container for one or more Visual Studio Projects.






37. Just-in-time compilation






38. 32 bit integer data






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






40. System.Byte






41. Contains the class definitions that allow access to the functionality provided by .NET.






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






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






44. A symbol that specifies an operation to be performed on one or more variables.






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






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






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






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






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






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