几道面试题,谁能帮我做下?需要英文好点的哦
Which of the following statements are true respecting break and continue statements? A) The break terminates the loop.
B) The continue terminates the loop.
C) The break branches immediately to the test portion of the loop.
D) The continue branches immediately to the test portion of the loop.
Which of the following statements are true respecting variable definitions and variable declarations?
A) A definition tells the compiler to set aside storage for the variable.
B) A declaration tells the compiler to set aside storage for the variable.
C) A declaration makes the variable known to parts of the program that may wish to use it.
D) A definition makes the variable known to parts of the program that may wish to use it.
E) A variable might be defined and declared in the same statement.
Which of the following statements are true with respect to structures and unions?
A) A union is an aggregate data type.
B) A structure combines two or more data types in the same area of storage.
C) A union combines one or more base or aggregate data types into a package that may treated as a whole.
D) The contents of a structure may be one data type at one time and another type at a different time.
E) All of the above
F) None of the above
Which of the following statements are true with respect to the & and && operators and the | and || operators?
A) & and | are logical AND and OR operators respectively.
B) && and || are bitwise AND and OR operators respectively.
C) & and | are bitwise OR and AND operators respectively.
D) && and || are logical OR and AND operators respectively.
E) All of the Above
F) None of the above
Select all possible ways (if any) the “next” variable can be incremented?
A) next = next + 1;
B) next++;
C) next += 1;
D) All of the above
E) None of the above
Which of the following statements are true respecting looping statements? (for, while and do while)
A) When the test is at the bottom, the body of the loop may never be executed.
B) When the test is at the bottom, the body of the loop will always be executed at least once.
C) When the test is at the bottom, the body of the loop will always be executed more than once.
D) When the test is at the top, the body of the loop may never be executed.
E) When the test is at the top, the body of the loop will always be executed at least once.
F) When the test is at the top, the body of the loop will always be executed more than once.
Which of the following statements are true with respect to the -> and . operators?
A) The -> operator provides access to members of a structure or union.
B) The . operator provides access to members of a structure or union.
C) The . operator is used when the variable is a pointer to a structure or union.
D) The -> operator is used when the variable is a pointer to a structure or union.
E) The -> operator is used when the variable is itself the structure or union.
F) The . operator combines the pointer dereferencing operator with the member access operator.
Is C case sensitive (i.e. Does C differentiate between upper and lower case letters)?
A) Always
B) Never
C) Sometimes
Select one or more of the following variable type(s) that may be validly returned from a function.
A) Character
B) Integer
C) Floating Point
D) Union
E) Structure
F) Function
G) Character Pointer
H) Integer Pointer
I) Floating Point Pointer
J) Union Pointer
K) Structure Pointer
L) Function Pointer
Which of the following statements are true with respect to lvalues and rvalues?
A) The lvalue refers to the left-hand side of an assignment expression.
B) The rvalue refers to the left-hand side of an assignment expression.
C) The lvalue represents the right-hand side of an assignment expression.
D) The rvalue represents the right-hand side of an assignment expression.
E) The lvalue must always evaluate to a memory location.
F) The rvalue must always evaluate to a memory location.
G) The lvalue may have any meaningful combination of variables and constants.
H) The rvalue may have any meaningful combination of variables and constants.