Tag: web technology

Questions Related to web technology

  1. private

  2. b.final

  3. c.protected

  4. d.don't use any keyword at all (make it default)


Correct Option: D
  1. Visible only inside the package.

  2. b.Visible only in the class and its subclass in the same package.

  3. c.Visible in all classes in the same package and subclasses in other packages.

  4. d.Visible only in the class where it is declared.


Correct Option: C

Which of the following are keywords? (A) switch (B) integer (C) default (D) boolean (E) object

  1. (B) & (C)

  2. b. (E)

  3. c. (A) & (C)

  4. d. (D)


Correct Option: C

Which of the following are not keywords? (A) NULL (B) implements (C) protected (D) extended (E) string

  1. (D) & (E)

  2. b. (A), (D) & (E)

  3. c. (D)

  4. d. (C), (D) & (E)


Correct Option: B

AI Explanation

To determine which options are not keywords, we need to understand what keywords are in programming.

Keywords are predefined reserved words in a programming language that have special meanings and cannot be used as variable names or identifiers. These keywords are typically used to define the syntax and structure of the programming language.

Now, let's go through each option to determine which ones are not keywords:

Option A) (D) & (E) - This option includes (D) and (E) as not keywords. (D) is "extended" and (E) is "string". "extended" is not a keyword, but "string" is a keyword in many programming languages.

Option B) (A), (D) & (E) - This option includes (A), (D), and (E) as not keywords. We have already determined that (D) is not a keyword, and (A) is "NULL" which is also not a keyword. However, (E) is "string" which is a keyword.

Option C) (D) - This option includes (D) as not a keyword, which is correct.

Option D) (C), (D) & (E) - This option includes (C), (D), and (E) as not keywords. We have already determined that (D) is not a keyword. (C) is "protected" which is a keyword in many programming languages. (E) is "string" which is also a keyword.

Based on the above analysis, the correct answer is B. The options (A), (D), and (E) are not keywords.