题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-06-08 01:13:08

[单项选择]

下面程序运行时,若输入“Visual Basic Programming”,则在窗体上输出的是()
  Private Sub Comand1_Click( )
  Dim count(25) As Integer, ch As String
  ch=Ucase(InputBox("请输入字母字符串"))
  For k=1 To Len(ch)
  n=Asc(Mid(ch,k,1))-Asc("A")
  If n>=0 Then
  Count(n)=Count(n)+ 1
  End If
  Next k
  m=count(0)
  For k=1 To 25
  If m< p>
  m=count(k)
  End If
  Next k
  Print m
  End Sub


A. 0
B. 1
C. 2
D. 3

更多"下面程序运行时,若输入&ldquo;Visual Basic Prog"的相关试题:

[单项选择]

下面程序运行时,若输入“Visual Basic Programming”,则在窗体上输出的是()
Private Sub Command1_Click( )
Dim count(25)As Integer,ch As String
ch=UCase(InputBox("请输入字母字符串"))
For k=1 To Len(ch)
n=Asc(Mid(ch,k,1))-Asc("A")
If n>=0 Then
count(n)=count(n)+1
End If
Next k
m=count(0)
For k=1 To 25
If m<count(k) Then
m=count(k)
End If
Next k
Print m
End sub


A. 0
B. 1
C. 2
D. 3
[单项选择]下面程序运行时,若输入“Visual Basic Programming”,则在窗体上输出的是( )。
Private Sub Command1_Click( )
Dim count(25) As Integer, ch As String
ch = UCase(InputBox("请输入字母字符串"))
For k=1 To Len(ch)
n = Asc(Mid (ch, k, 1)) - Asc("A")
If n > = 0 Then
count (n) = count (n) + 1
End If
Next k
m = count(0)
For k=1 To 25
If m < count(k) Then
m = count (k)
End If
Next k
Print m
End Sub
A. 0
B. 1
C. 2
D. 3
[单项选择]下面程序运行时,若输入“Visual Basic Prograrmming”,则在窗体上输出的是( )
Private Sub Command1_Click( )
Dim count(25)As Integer,ch As String
ch=Ucase(InputBox("请输入字母字符串"))
For k=1 To Len(ch)
n=Asc(Mid(ch,k,1))-Asc("A")
If n>=0 Then
count(n)一count(n)+1
End If
Next k
m=count(0)
For k=1 To 25
If m<count(k) Then
m=count(k)
End If
Next k
Print m
End Sub
A. 0
B. 1
C. 2
D. 3
[单项选择]下面程序运行时,若输入395,则输出结果是( )
Private Sub Command1_Click( )
Dim x%
x=InputBox("请输入一个3位整数")
Print x Mod 10,x/100,(X Mod 100)/10
End Sub
A. 3 9 5
B. 5 3 9
C. 5 9 3
D. 3 5 9
[填空题]以下程序在运行时若输入:1234567,则程序的运行结果是______。
#include<stdio.h>
main( )
 int x, y;
 scanf("%2d%1d", &x, &y); printf("%d/n", x+y);

[单项选择]

下面程序运行时,若输入395,则输出结果是()。
Private Sub Command1_Click( )
Dim x%
x=InputBox("请输入一个3位整数")
Print x Mod 10,x/100,(x Mod 100)/10
End Sub


A. 3 9 5
B. 5 3 9
C. 5 9 3
D. 3 5 9
[填空题]

下列程序运行时,若输入labcedf2df<回车>输出结果为()。
#include<stdio.h>
main( )
{ char a=0,ch;
while((ch==getchar( ))!=’/n’)
{ if(a%2!=0&&(ch>=’a’&&ch<=’z’)) ch=ch’a’+’A’;
a++;prtchar(ch);
}
printf("/n");
}


[填空题]下列程序运行时,若输入1abcedf2df<回车>,则输出结果为______。 #include<stdio.h> main( ) { char a=0, ch;  while((ch=getchar( ))!=’/n’)  { if(a%2!=0 && (ch>=’a’ && ch<=’z’)) ch=ch-’a’+’A’;   a++; putchar(ch); } printf("/n"); }
[填空题]下列程序运行时,若输入1abcdef2df<回车>,输出结果为______。
#include<stdio.h>
void main( )
char a=0,ch;
while((ch=getchar( ))!=’/n’)
if(a%2!=0&&(ch>=’a’&&ch<=’z’))ch=ch-’a’+’A’;
a++;putchar(ch);

printf("/n");

[填空题]

描述“X是小于100的非负整数”的Visual Basic表达式是()。


[填空题]

下面程序运行时输出结果为
C:/Program Files is a directory.
请将程序补充完整。
import java.io.*;
public class DirTest {
public static void main(String[] args) {
File myDir = new File("C:/Program Files/");
System.out.println
(myDir+( 【11】 .isDirectory( )"is": "is not") +" a directory.");
}
}


[简答题]编写程序,实现矩阵(3行3列)的转置(即行列互换)。
例如,若输入下面的矩阵:
100 200 300
400 500 600
700 800 900
则程序输出:
100 400 700
200 500 800
300 600 900
注意:部分源程序给出如下。
请勿改动主函数main和其他函数中的任何内容,仅在函数fun的花括号中填入所编写的若干语句。
试题程序:
#include <stdio.h>
#include <conio.h>
int fun (int array[3][3])


main( )

int i,j;
int array [3][3]=100,200,300,400,
500,600,700,800,900;
clrscr( );
for (i-0;i<3;i++)
for (j=0;j<3;j++)
printf("%7d ",array[i] [j]);
printf("/n ");

fun(array);
printf("Converted array:/n ");
for (i=0;i<3;i++)
for (j=0;j<3;j++)
printf("%7d ",array[i][j]);
printf("/n ");


[单项选择]在程序运行时,下面的叙述中正确的是( )
A. 用鼠标右键单击窗体中任何无控件部分,会执行窗体的Form_Load事件过程
B. 用鼠标左键单击窗体的标题栏,会执行窗体的Form_Click事件过程
C. 只装入而不显示窗体,也会执行窗体的Form_Load事件过程
D. 装入窗体后.每次显示该窗体时,都会执行窗体的Form_Click事件过程
[判断题]软件就是计算机运行时所需的程序。
[简答题]若输入3个整数3,2,1<回车>则下面程序的输出结果是
#include<stdio.h>
main( )
int i,n,aa[10]=0,0,0,0,0,0;
scanf("%d%d%d",&n,&aa[0],&aa[1]);
for(i=0;i<=n;i++)
printf("%d",aa[i]);

[填空题]下面程序运行时输出结果为 【8】 。 #include<iostream.h> #include<malloc.h> class Rect { public: Rect(int1,int w)(length=1;width=w;) void Print( ){cout<<"Area:"<<length *width<<endl;) void *operator new(size-t size){return malloc(size);} void operator delete(void *p){free(p) private: int length,width; }; void main( ) { Rect*p; p=new Rect(5,4); p->Print( ); delete p; }
[填空题]若下面程序运行时输出结果为: 1,A,10.1 2,B,3.5 请将程序补充完整。 #include<iostream> using namespace std; int main( ) { void test(int, char,double______); test(1, ’A’, 10.1); test(2, ’B’); return 0; } void test(int a, char b, double c) { cout<<a<<’,’<<b<<’,’<<c<<end1; }

我来回答:

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

订单号:

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