【名词&注释】
结构化程序设计(structured programming)、表达式、程序代码(program code)、第一次(the first time)
                            
                                                                                         
                                                                    
                                                                     [单选题]下面描述中,符合结构化程序设计风格的是______。
                                                                                                
                                  A. 使用顺序、选择和重复(循环)三种基本控制结构表示程序的控制逻辑 
  B. 模块只有一个入口,可以有多个出口(可以有0 个入口) 
  C. 注重提高程序的执行效率 
  D. 不使用goto语句(只是限制使用) 
 
                                    
                                        查看答案&解析查看所有试题
                                        
                                                                    
                                                                    学习资料:
                                                                    
                                                                         
                                    
                                     [单选题]阅读下面程序,则程序的执行结果为 【10】 。
                                                                                                            
                                            A. include "stdio.h" 
  B. main() 
  C. {int a=30,b=20,z; 
  D. z=fun(a+b,a-b); 
  E. printf("%d\n",z); 
  F. } 
  G. fun(int a,int b) 
  H. {int z; 
  I. z=a/b; 
  J. return z; 
  K. } 
 
                                                                    
                                    
                                     [单选题]下面表示打开c盘存在文件abc而,输出的内容加在末尾的是( )。
                                                                                                            
                                            A. ofstream myf("c:\\abc"); 
  B. ofstream myf("c:\\abc",ios::outlios:: trund); 
  C. ofstream myf("c:\\abc",ios::outlios:: ate); 
  D. ofstream myf("c:\\abc",ios::out); 
 
                                                                    
                                    
                                     [单选题]以下程序运行后,单击按钮输出结果是 Private Sub Commandl_Click( ) Dim x As Integer,y As Integer,z As Integer X=4:y=2: Z=3 Call Gopd(x,x,z) Print x;X;Z Call Gopd(x,y,y) Print x;y;y End Sub Private Sub Gopd(x As Integer,y As Integer,z As Integer) X=3 * Z + 1 y=2 * z z=x + y End Sub
                                                                                                            
                                            A. 6 6 12 7 11 11 
  B. 8 5 10 5 11 11 
  C. 9 6 12 9 10 15 
  D. 8 10 10 5 9 10 
 
                                                                    
                                    
                                     [单选题]有以下程序: main() { int x[8]={8,7,6,5,0,0},*s; S=x+3; printf("%d\n",s[2]); } 程序运行后的输出结果是 ______ 。
                                                                                                            
                                            A. 随机值 
  B. 0 
  C. 5 
  D. 6 
 
                                                                    
                                    
                                     [单选题]设“int x=2,y=1;”,则表达式(!x|| Y--)的值是( )。
                                                                                                            
                                            B. 1 
  C. 2 
  D. -1 
 
                                                            
                             本文链接:https://www.51ksbd.net/show/j6edky.html