Browse Questions

Programming Questions

Create printable tests and worksheets from Programming questions.

The Programming questions below are in the following grade level(s): College Continuing Education

1 2 3 next page
  • What is a Class?
    • A Class is the blueprint from which individual objects are created.
  • What rules must a well-formed XML document conform to?
    • A well-formed document must conform to the following rules, among others:

      1. Non-empty elements are delimited by both a start-tag and an end-tag.
      2. Empty elements may be marked with an empty-element (self-closing) tag, such as <IAmEmpty />. This is equal to <IAmEmpty></IAmEmpty>.
      3. All attribute values are quoted with either single (') or double (") quotes. Single quotes close a single quote and double quotes close a double quote.
      4. Tags may be nested but must not overlap. Each non-root element must be completely contained in another element.
      5. The document complies with its declared character encoding. The encoding may be declared or implied externally, such as in "Content-Type" headers when a document is transported via HTTP, or internally, using explicit markup at the very beginning of the document. When no such declaration exists, a Unicode encoding is assumed, as defined by a Unicode Byte Order Mark before the document's first character. If the mark does not exist, UTF-8 encoding is assumed.
      6. Element names are case-sensitive. For example, the following is a well-formed matching pair:
  • What are some of the differences between and Interface and an Abstract class?
    • An abstract class can have instance methods that implement a default behavior.
      An interface can only declare constants and instance methods, but cannot implement default behavior. An interface has all public members and no implementation.
      An abstract class may have private, protected, etc. members, but has some abstract methods.
1 2 3 next page