C99 standard guarantees uniqueness of ____ characters for internal names.
a) 31
b) 63
c) 12
d) 14
View Answer
Answer:b
Explanation:ISO C99 compiler may consider only first 63 characters for internal.
// end example
正式题目:
Which of the following is not a valid variable name declaration?
a) int a3;
b) int 3a;
c) int __A3;
d) None of the mentioned
Which of the following is not a valid variable name declaration?
a) int _a3;
b) int a_3;
c) int 3_a;
d) int _3a
Variable names beginning with underscore is not encouraged. Why?
a) It is not standardized
b) To avoid conflicts since assemblers and loaders use such names
c) To avoid conflicts since library routines use such names
d) To avoid conflicts with environment variables of an operating system
All keywords in C are in
a) LowerCase letters
b) UpperCase letters
c) CamelCase letters
d) None
Which of the following is not a valid C variable name?
a) int number;
b) float rate;
c) int variable_count;
d) int $main;
Which of the following is true for variable names in C?
a) They can contain alphanumeric characters as well as special characters
b) It is not an error to declare a variable to be one of the keywords(like goto, static)
c) Variable names cannot start with a digit
d) Variable can be of any length
The value of expression 3.6-5/2+1.2+5%2 is .
(A) 4.3
(B) 4.8
(C) 3.3
(D) 3.8
___ translates high-level language program into machine language program.
(A)CPU
(B) A compiler
(C) An assembler
(D) The operating system
Which of the followings cannot be used as an identifier?
(A) _1234
(B) __1_2
(C) int2
(D) 2int
If x = 2 and y = 3, what is the value of y for y += x > y ? x x : y \ y.
(A) 12
(B) 9
(C) 7
(D) none of the above
Suppose int i=1,which of the following statements cannot increase variable i by 1?
(A)i=i+1;
(B)i+=1;
(C)i++;
(D)i=1;
Which of the followings cannot be used as an identifier?
(A) true
(B) INT
(C) CHINA
(D) end
The value of expression 4-5/2.0+5%2 is .
(A) 2.5
(B) 3
(C) 4
(D) none of the above
Which of the following is not a valid variable name declaration?
Answer:d
Explanation:None.
Which of the following is not a valid variable name declaration?
Answer:c
Explanation:Variable name cannot start with a digit.
Variable names beginning with underscore is not encouraged. Why?
Answer:c
Explanation:None.
All keywords in C are in
Answer:a
Explanation:None.
Which of the following is not a valid C variable name?
Answer:d
Explanation:Since only underscore and no other special character is allowed in a variable name, it results in an error.
Which of the following is true for variable names in C?
Answer:c
Explanation:According to the syntax for C variable name, it cannot start with a digit.
The value of expression 3.6-5/2+1.2+5%2 is .
答案:D
___ translates high-level language program into machine language program.
答案:B
Which of the followings cannot be used as an identifier?
答案:D
If x = 2 and y = 3, what is the value of y for y += x > y ? x x : y \ y.
答案:A
Suppose int i=1,which of the following statements cannot increase variable i by 1?
答案: D
Which of the followings cannot be used as an identifier?
答案: A
Attention:
作业写在纸上,写上姓名学号,在实验课结束后提交。
对于每一道题目,写上答案,并且写上解题思路,为什么选这个?(根据什么?)
英文答题
:smile: :smile: :smile:
答题例子: // example
正式题目:
(B) A compiler
(C) An assembler
(D) The operating system