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






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






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. 64 bit integer data






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






6. 64 bit double precision floating point data






7. System.Char






8. Text as Unicode characters






9. 16 bit - signed integer data (-32768 to 32767)






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






11. System.UInt32






12. 64 bit integer data






13. System.Single






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






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






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






17. 32 bit - unsigned integer data






18. A Class that can only have Static Members






19. System.SByte






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






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






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






23. 32 bit integer data






24. Framework Class Library






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






26. Just-in-time compilation






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






28. Syntax of a C# Method






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






30. 64 bit - unsigned integer data






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






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






33. (&& or || or & or |)






34. Access is limited to the current Assembly






35. 128 bit fixed precision (financial)






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






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






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






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






40. A Member that cannot be accessed/invoked through an Object Instance.






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






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






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






44. System.Int64






45. System.UInt16






46. true or false






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






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






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






50. A Class that inherits characteristics from another Class.