Sunday, September 14, 2014

AP Computer Science: Identifier Exam On Wednesday (First Block)

This Wednesday, Septermber 17th, first block, we will have our first exam in AP Computer Science. You will be presented with a series of words. For each word, you will have to identify if the word is a valid identifier in java. Valid identifiers are those words which can be used as variables.

There are two possible reasons why a word may be disqualified from being used as an identifier. First, if it is one of java's 50 reserved words, it cannot be used as an identifier/variable name. An example of such a word is void.

Alternatively, a word may be disqualified because it contains an illegal sequence of characters. For example ab,cd is not a valid identifier because a comma is not permitted anywhere inside an identifier.

The test will count for 50 points, so it will only carry half the weight of the other tests you will take this year in AP Comp Sci. The test will likely not take you the entire period so bring some work for another class in case you finish early.

No comments:

Post a Comment