【单选题】【消耗次数:1】
以下C语言源程序的书写格式不正确的是()。
正确的函数首部,其后必须加上分号
分号是语句的一部分
一行上可以书写多条语句
一个语句可以写在多行之上
参考答案:
复制
纠错
相关题目
【判断题】 C语言源程序的每一条语句都是以分号结束。
①  正确
②  错误
【单选题】 在一行写多条语句时,每个语句之间用什么符号分隔?
① 
② 
③ 
④  ;
【单选题】 在所有结构性语句中,只有( )语句必须是以分号结束的。
①  for
②  while
③  do
④  switch
【单选题】 在所有结构性语句中,只有( )语句必须是以分号结束的。
①  for
②  while
③  do
④  switch
【单选题】 在代码编辑器中,如果一条语句太长,无法在一行内写下(不包括注释),要折行书写,可以在行末使用续行字符(),表示下一行是当前行的继续。
①  一个空格加一个下划字符(_)
②  .一个下划字符(_)
③  直接回车
④  一个空格加一个连字符(—)
【单选题】 C语言源程序的每一条语句都是以( )结束。
①  分号
②  冒号
③  句号
④ 
【单选题】 关于语句行,下列说法正确的是()。
①  一行只能写一条语句
②  一条语句可以分多行书写6
③  每行的首字符必须大写
④  长度不能超过255个字符
【单选题】 如果一个函数位于C程序中定义的第一个函数,在该函数体内说明语句后的复合语句中定义了一个变量,则该变量(  )。
①  为全局变量,在本程序文件范围内有效
②  为局部变量,只在该函数内有效
③  为局部变量,只在该复合语句中有效
④  定义无效,为非法变量
【单选题】 以下C语言语句中,正确的是()
①  unsignedinta[2*3];
②  chars[N+1];
③  doublef[];
④  floatb[4]={1,2,3,4,5};
【单选题】 以下不正确的if语句形式是( )。
①  if (xx!=y)
②  if(x==y)x+=y
③  if(x!=y)scanf(%d,x)else scanf(%d,
④  if(XY) {X++;Y++};
随机题目
【单选题】 ____, the more you are aware of content and meaning.
①  The more words you are familiar to
②  The more words you are familiar with
③  You are familiar to more words
④  You are familiar with more words
【单选题】 The English teacher strongly advises that every student ____ an all English dictionary.
①  to buy
②  buying
③  in buying
④  buy
【单选题】 Only about one out of twelve of the young men and women of this country ____ college education.
①  receive
②  receives
③  have received
④  have been received
【单选题】 The boy and his mother were ____ in the burning house.
①  involved
②  trapped
③  enclosed
④  surrounded
【单选题】 ____ of whether you are ill or not, I want you to cover the story of today’s conference on the environment.
①  Regardless
②  Despite
③  Even
④  Considering
【单选题】 It is an ____ change that has taken place.
①  amazing
②  attempting
③  awaking
④  amusing
【单选题】 19. Water will continue to be ____ it is today —next in importance to oxygen.
①  how
②  Which
③  as
④  what
【单选题】 I’ll pick you up as promised, ____it rainy or fine.
①  will
②  be
③  should
④  no matter
【单选题】 29. As they cant afford to let the situation get worse, they will take some necessary ____.
①  decisions
②  sides
③  directions
④  steps
【单选题】 -I’m sorry I broke your mirror.-Oh, really? ____.
①  It’s OK with me
②  It doesnt matter
③  Don’t be sorry
④  I don’t care