亚洲欧洲国产欧美一区精品,激情五月亚洲色五月,最新精品国偷自产在线婷婷,欧美婷婷丁香五月天社区

      自考

      各地資訊
      當前位置:華課網(wǎng)校 >> 自考 >> 自考真題 >> 工學類 >> 高級語言程序設(shè)計(一) >> 文章內(nèi)容

      排行熱點

      2018年10月自考高級語言程序設(shè)計(一)真題_第2頁

      來源:華課網(wǎng)校  [2019年10月20日]  【

        第二部分 非選擇題

        二、填空題 (本大題共 10 小題,每小題 2 分,共 20 分)

        21. 初始化值是 0.618 的雙精度變量 a 的定義形式為 _____________________。

        22. 表達式 !10! = 1 的值是 ____________________。23. “ 20<>

        24. 表達式 a = 1,a + 1,a + + 的值是 ___________________。

        25. 設(shè) int i = 5 ;則循環(huán)語句 while (i > = 1) i - - ;執(zhí)行后, i 的值為 _______________。

        26. 被調(diào)函數(shù)在執(zhí)行結(jié)束時,這個函數(shù)中定義的 __________________類型的變量不被釋

        放。

        27. 設(shè)

        struct student

        {

        int no;

        char name[12];

        float score[3] ;

        } sl ,* p = &sl ;

        用指針法給 sl 的成員 no 賦值 1234 的語句是 ___________________。

        28. C 語言程序中對文本文件的存取是以 ________________為單位進行的。

        29. 設(shè) char string[] = ″This_is_a_book! ;則數(shù)組的長度應(yīng)是 ″ ________________。

        30. 設(shè) int a[2][3] = {{2} ,{3}} ;則數(shù)組元素 _____________________的值為 3。

        三、程序分析題 (本大題共 5 小題,每小題 5 分,共 25 分) 閱讀下列程序,將輸出結(jié)果

        寫到各題右側(cè)的空白處

        31. int a = 200;

        main()

        {int i ;

        for(i = 1 ;i< = 5 ; i + +)

        {a + + ;

        printf( ﹪″d,″,a);

        s()

        }

        {

        s()

        {static int a = 20 ;a + + ;

        printf( ﹪″d \ n″,a);

        }

        32. # include ″ stdio.h ″

        main()

        {char c;

        c = getchar();

        if(c> = ′ a′ &&c< =‖′c> =z′′) X′ &&c< = ′ Z′- 23)c = c ;

        printf( ﹪″c \ n″,c);

        }

        設(shè)從鍵盤上輸入 Next ↙

        33. # define N 7

        main()

        {int i ,j,temp,a[N]={1 ,2,3,4,5,6,7} ;

        for(i = 0 ;i<>

        {j = N - 1 - i ;

        temp = a[i] ;a[i]=a[j] ;a[j]=temp ;

        }

        for(i = 0 ;i< ;i="" +="">

        }

        34. struct porb

        {char * name ;

        int count;

        }x[]={ ″ Li ning19,″,″ Lang ping 1,″″,2Zhu jian hua ;″ ,20}

        main()

        {int i ;

        for(i = 0 ;i<3;i + + )

      首頁 1 2 尾頁
      責編:zj10160201