【单选题】【消耗次数:1】
若主调用函数类型为double,被调用函数定义中没有进行函数类型说明,而return语句中的表达式类型为float型,则被调函数返回值的类型是(  )。
int 型
float 型
double 型
由系统当时的情况而定
参考答案:
复制
纠错
相关题目
【单选题】 以下函数fun的返回值类型为( )。fun(double x){ ……}
①  int
②  void
③  无法确认类型
④  double
【单选题】 若定义了函数 double *function(), 则函数function的返回值为()。
①  实数型
②  实数的地址
③  指向函数的指针
④  函数的地址
【单选题】 若定义了函数 double *function(), 则函数function的返回值为()。
①  实数型
②  实数的地址C.指向函数的指针
③  函数的地址
【单选题】 若定义了函数 double *function(), 则函数function的返回值为(????)。
①  实数型
②  实数的地址C.指向函数的指针
③  函数的地址
【判断题】 作为表达式的函数调用,被调用函数必须有返回值。
①  正确
②  错误
【单选题】 设x为float型变量,y为double型变量,a为int型变量,b为long型变量, c为char型变量,则表达式x+y*a/x+b/y+c的值为( )类型。
①  int
②  long
③  double
④  char
【单选题】 函数返回值类型是由()
①  return语句的表达式类型决定
②  则主调函数接收变量类型决定
③  调用函数时系统随机分配决定
④  定义函数时所指定的函数类型决定
【单选题】 C语言中,若缺省定义函数返回值类型,则该函数默认返回值类型是()。
①  void
②  long
③  int
④  double
【单选题】 若程序中定义函数float myadd(float a, float b) { return a+b;} 并将其放在调用语句之后,则在调用之前应对该函数进行说明。以下说明中错误的是(  )。
①  float myadd( float a,b);
②  float myadd(float b, float a);
③  float myadd(float, float);
④  float myadd(float a, float b);
【单选题】 设有说明:char w;int x;float y;double z;则表达式w*x+z-y 值的数据类型为().
①  float
②  char
③  int
④  double
随机题目
【单选题】 What are two categories of vocabulary?
①  Receptive vocabulary and productive vocabulary
②  innate vocabulary and learned vocabulary
③  familiar vocabulary and unfamiliar vocabulary
④  new vocabulary and old vocabulary.
【单选题】 What are two grammar practice activities?
①  Mechanical practice and meaningful practice
②  Volume practice and communicative practice
③  Interest practice and meaningful practice
④  Mechanical practice and success oriented practice.
【单选题】 What are two broad categories of knowledge?
①  Implicit knowledge and explicit knowledge
②  Obvious knowledge and unobvious knowledge
③  Inductive knowledge and deductive knowledge
④  Refereed knowledge and inferred knowledge.
【单选题】 Which of the following steps are typical for the deductive grammar teaching method?
①  Give examples→explain rules→students do practice activities
②  Authentic language data is provided→induces learners to realize grammar rules→apply the new structure to produce sentences (the inductive method)
③  Explicit rules are give to students→Authentic language data is provided→apply the new structure to produce sentences (the guided discovery method)
④  All of the above.
【单选题】 Which of the following statement is not true?
①  Grammatical competence is essential for communication
②  There is a positive role of instruction for grammar learning
③  Grammar teaching can enhance learner proficiency
④  Grammar learning is completely useless for children.
【单选题】 Which of the following is not grammar presentation method?
①  Deductive method
②  Inductive method
③  Guided discovery method
④  Communicative teaching method.
【单选题】 What is the realistic goal of teaching pronunciation?
①  Consistency
②  Intellegibility
③  Communicative efficiency
④  All of the above.
【单选题】 Which type does the following production practice belong to? She sells sea shells on the seashore.
①  Make up sentences
②  Using meaningful context
③  Using pictures
④  Using tongue twisters.
【单选题】 Which type does the following production practice belong to? The students repeat what the teacher says. This activity can practice individual sounds, individual words, groups of words, and sentences.
①  Listen and repeat
②  Fill in the blanks
③  Make up sentences
④  Using meaningful context
【单选题】 What does the falling intonation on the question “where do you live ?” indicate?
①  I am telling you something you do not know
②  I have not finished yet
③  I am asking a genuine question
④  I know you have told me before.