题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-10 23:46:22

[单项选择]若希望下列的程序运行后输出25,程序空白处的正确选项是( )。
main( )
int id=50,a[]=7, 4, 10, 5, 8;
for( )
j+=a[i];
printf("%d", j-40);

A. i=1; i<4; ++i
B. i=1; i<3; ++i
C. i=4; i>2; i==
D. i=2; i<4; ++i

更多"若希望下列的程序运行后输出25,程序空白处的正确选项是( )。 m"的相关试题:

[单项选择]以下程序运行后的输出结果是 void swap(int x, int y) {int t; t=x;x=y;y=t; } main( ) {int a=15, b=16; swap(a, b); printf("% d % d", a, b); }
A. 15, 16
B. 16, 15
C. 15, 15
D. 16, 16
[单项选择]以下程序运行后的输出结果是
#include <stdio.h>
int fun(int a,int b)
if(b==0) return a;
else return(fun(--a,--b));

main( )
printf("%d/n",fun(4,2));
A. 1
B. 2
C. 3
D. 4
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
struct st
int x,y; data[2]=1,10,2,20;
main( )
struet st *p=data;
printf("%d,",p->y);printf("%d/n",(++p)->x);

A. 10,1
B. 20,1
C. 10,2
D. 20,2
[单项选择]以下程序运行后的输出结果是______。
int d=1;
fun(int p)
static int d=5;d+=p
printf("%d,d");retum d;

main( )
int a=3;printf("%d/n",fun(a+fun(d) ));
A. 699
B. 9
C. 61515
D. 6615
[单项选择]以下程序运行后的输出结果是______。
int d=1:
fun(int p)
static int d=5;d+=p;
printf("%d",d);return d;

main( )
int a=3;printf("%d/n",fun(a+fun(d)));
A. 699
B. 669
C. 61515
D. 6615
[单项选择]以下程序运行后的输出结果是_______。
int d=1;
fun(int p)
printf(%d",d);return d;

main( )
int a=3; printf("%/n",fun(a+fun(d)));
A. 699
B. 669
C. 61515
D. 6615
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
main( )
int x=1,y=2,z=3;
it(x>y)
if(y<z) printf("%d",++z);
else printf("%d",++y);
printf("%d/n",x++);

A. 331
B. 41
C. 2
D. 1
[单项选择]以下程序运行后的输出结果是
#include<stdio.h>
main( )
int i,j;
for(i=3;i>=1;i--)
for(j=1;j<=2;j++)printf("%d",i+j);
printf("/n");


A. 2 3 4
B. 4 3 2
C. 2 3
D. 4 5
[单项选择]下面程序运行后的输出结果是_____。
struct abc

int a,b,c;

main( )

struct abc s[2]=1,2,3,4,5,6;
int t=s[0].a+s[1].b;
printf("%d/n",t);

[单项选择]下面程序运行后的输出结果是______。
struct abc

int a,b,c;

main( )

struct abc s[2]=1,2,3,4,5,6;
int t=s[0].a+s[1].b;
printf("%d/n",t);

[单项选择]以下程序运行后的输出结果是______。
main ( )
int y=18,i=0,j,a[8];
do
a[i]=y%2;i++;
y=y/2;
while(y>=1);
for(j=i-1;j>=0;j--)printf("%d",a[j]);
printf("/n");

A. 1000
B. 10010
C. 00110
D. 10100
[单项选择]

根据短文内容,从短文后的选项中选出能填入空白处的最佳选项,选项中有两项为多余选项。
Secret codes (密码)keep messages private。Banks, companies, and government agencies use secret codes in doing business, especially when information is sent by computer.
People have used secret codes for thousands of years. 36 Code breaking never lags(落后) far behind code making. The science of creating and reading coded messages is called cryptography.
There are three main types of cryptography. 37 For example, the first letters of “My elephant eats too many eels” Spell out the hidden message “Meet me.”  
38 You might represent each letter with a number, For example, Let’s number the letters of the alphabet, in order, from 1 to 26. If we substitute a number for each letter, the message “Meet me” would read “13 5 20 13 5.”
A code uses symbols to replace words, phrases, or sentences. To read the message of a real code, you must have a code bo
A. It is very hard to break a code without the code book.
B. In any language, some letters are used more than others.
C. Only people who know the keyword can read the message.
D. As long as there have been codes, people have tried to break them.
E. You can hide a message by having the first letters of each word spell it out.
F. With a code book, you might write down words that would stand for other words.
G. Another way to hide a message is to use symbols to stand for specific letters of the alphabet.

[单项选择]下列程序的输出结果是______。
int fun(int x,int y,int*cp,int*dp)
*cp=x+y; *dp=x-y;
main( )
int a, b, c, d;
a=30;b=50;
fun(a,b,&c,&d);
printf("%d,%d/n", c, d);

A. 50,30
B. 30,50
C. 80,-20
D. 80,20
[单项选择]

根据短文内容,从短文后的选项中选出能填入空白处的最佳选项。选项中有两项为多余选项。
A garden that’s just right for you
Have you ever visited a garden that seemed just right for you, where the atmosphere of the garden appeared to total more than the sum(总和) of its parts?    36   . But it doesn’t happen by accident. It starts with looking inside yourself and understanding who you are with respect to the natural world and how you approach the gardening process.
●37  
Some people may think that a garden is no more than plants, flowers, patterns and masses of color. Others are concerned about using gardening methods that require less water and fewer fertilizers(肥料).    38   . However, there are a number of other reasons that might explain why you want to garden. One of them comes from our earliest years.
●Recall(回忆) your childhood memories
Our model of what a garden should be often goes back to childhood. Grandma’s rose
A. Know why you garden
B. Find a good place for your own garden
C. It’s our experience of the garden that matters
D. It’s delightful to see so many beautiful flowers
E. Still others may simply enjoy being outdoors and close to plants
F. You can produce that kind of magical quality in your own garden, too
G. For each of those gardens, writer down the strongest memory you have

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码