Question: - Question 1. Which statement below is wrong? (A) Pure functional languages do not have variables like those of the imperative languages. (B) The abstractions

- Question

1. Which statement below is wrong?

(A) Pure functional languages do not have variables like those of the imperative languages.

(B) The abstractions in an imperative language for the memory cells of the machine are variables

(C) Von Neumann computer architecture has two primary components: memory and processor

(D) When designing the data types of a pure functional language, the most important issues are the scope and lifetime of variables

2. Which statement below is wrong?

(A) A name is a string of characters used to identify some entity in a program

(B) C99 has no length limitation on its internal names, but only the first 63 are significant

(C) Names in Java, C#, and Ada allows up to 31 characters in its names, and all characters in them are significant.

(D) Name form in most programming languages is a letter followed by a string consisting of letters, digits, and underscore characters ( _ )

3. Which statement below is correct?

(A) The use of underscores and mixed case in names is a language design issue, not a programming style issue.

(B) In many languages, notably the C-based languages, uppercase and lowercase letters in names are distinct.

(C) A keyword is a word of a programming language that is special in all contexts.

(D) A reserved word is a special word of a programming language that can be used as a name in certain contexts.

4. Which variable name is a valid name in PHP?

(A) $name;

(B) @@no_of_customers

(C) salary

(D) %age

5. Which statement is correct?

(A) A variable must have a name.

(B) The same variable can only be associated with the same address at different times in the program.

(C) The address of a variable is sometimes called its terminal-value.

(D) When more than one variable name can be used to access the same memory location, the variables are called aliases.

6. Which statement is wrong?

(A) Value of a variable is the contents of the memory cell or cells associated with the variable.

(B) A variables value is sometimes called its nonterminal-value.

(C) A variables value is what is required when the name of the variable appears in the right side of an assignment statement.

(D) Type of a variable determines the range of values the variable can store.

7. Given a Java statement below, which statement is a wrong description about the statement?

age = age - 1;

(A) The type of age is bound at compiler design time.

(B) The set of possible values of age is at compiler design time.

(C) The meaning of the operator symbol - is bound at compile time, when the types of its operands have been determined.

(D) The value of age is at execution time with this statement.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!