不凡考网

阅读以下程序及对程序功能的描述,其中正确的描述是#include <st

  • 下载次数:
  • 支持语言:
  • 1682
  • 中文简体
  • 文件类型:
  • 支持平台:
  • pdf文档
  • PC/手机
  • 【名词&注释】

    二分法(dichotomy)、时间复杂度(time complexity)、存储器(memory)、合二为一

  • [单选题]阅读以下程序及对程序功能的描述,其中正确的描述是#include main(){ FILE *in,*out; char ch,infile[10],outfile[10]; printf("Enter the infile name:\n"); scanf("%s",infile); printf("Enter the outfile name:\n"); scanf("%s",outfile); if((in=fopen(infile,"r"))==NULL) { printf("cannot open infile\n"); exit(0); } if((out=fopen(outfile,"w"))==NULL) { printf("cannot open outfile\n"); exit(0); } while(! feof(in))fputc(fgetc(in),out); fclose(in); fclose(out);}

  • A. 程序完成将磁盘文件的信息在屏幕上显示的功能
    B. 程序完成将两个磁盘文件合二为一的功能
    C. 程序完成将一个磁盘文件复制到另一个磁盘文件中
    D. 程序完成将两个磁盘文件合并后在屏幕上输出

  • 查看答案&解析 点击获取本科目所有试题
  • 举一反三:
  • [单选题]设序列长度为n,在最坏情况下,时间复杂度为O(log2n)的算法是()。
  • A. 二分法查找
    B. 顺序查找
    C. 分块查找
    D. 哈希查找

  • [单选题]“640K存储器”是指下列( )。
  • A. 40×23Bytes的存储器
    B. 640×23Bits的存储器
    C. 640×210Bits的存储器
    D. 640×210Bytes的存储器

  • 本文链接:https://www.zhukaozhuanjia.com/download/6w7gwg.html
  • 推荐阅读
    @2019-2026 不凡考网 www.zhukaozhuanjia.com 蜀ICP备20012290号-2