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. Characteristics of an object. Something an object has. Provides a specific access point to data within a field






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






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






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






5. Extra information within a method






6. 32 bit single precision floating point data






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






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






9. System.UInt32






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






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






12. Syntax of a C# Method






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






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






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






16. Must have a data type






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






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






19. System.Int64






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






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






22. 64 bit - unsigned integer data






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






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






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






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






27. System.Double






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






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






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






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






32. Mathematical (+ or - or / or %)






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






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






35. 32 bit integer data






36. Indicates that the Method can be overridden.






37. A Class that cannot be instantiated.






38. 8 bit - unsigned byte (0 - 255)






39. System.Byte






40. System.Single






41. Object Oriented Programming relies on dot.notation. Dot Notation enables public methods to be fully accessible from outside an object. Member names are separated by a dot (.). Syntax is method-defined-in-class.bject-in-runtime-of-class






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






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






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






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






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






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






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






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






50. (< or > or <= or >=)