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. 16 bit - signed integer data (-32768 to 32767)






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






4. Symbols which transform and combine expressions






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






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






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






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






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






10. System.SByte






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






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






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






14. System.Char






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






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






17. Must have a data type






18. 64 bit integer data






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






20. System.Single






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






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






23. Series of instructions which tell a computer what to do.






24. (&& or || or & or |)






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






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






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






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






29. 32 bit - unsigned integer data






30. true or false






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






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






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






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






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






36. 64 bit integer data






37. 64 bit double precision floating point data






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






39. System.Decimal






40. Allows the definition of a Class to span multiple files (within the same Project)






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






42. 64 bit - unsigned integer data






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






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






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






46. Text as Unicode characters






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






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






49. (== or !=)






50. Windows Presentation Foundation