更多"Excel中,如果把一串阿拉伯数字作为字符而不是数值输入,应当在数字前"的相关试题:
[判断题]Excel中,如果把一串阿拉伯数字作为字符而不是数值输入,应当在数字前加双引号“””。( )
A. 正确
B. 错误
[填空题]字符型常量也称为字符串,它是由字符串"定界符"括起来的一串字符,定界符可以是单引号、双引号或()
[填空题]
键入一串字符(换行作为结束标志),统计字符的个数,将该串字符及字符个数显示到屏幕上并写入文件str.dat中。
#include<stdio.h>
main( ) {
char ch;int sumch=0;
FILE*fp;
fp=fopen ("str.dat","w");
while((ch=getchar( ))!=______)/*第一空*/ {
sumch++; putchar(ch);
fputc(______,fp);/*第二空*/
}
printf("sumch=%d/n",sumch);
fprintf(______,"sumch=%d/n",sumch);/*第三空*/
fclose(fp);
}
[填空题]用文本值作为查询准则时,文本值要用 【8】 的双引号括起来。
[简答题]【说明】
单击窗体上的“测试”(cmdTest)按钮,出现一个输入框,要求输入一串字符,将该字符串中的非字母字符删除后,显示在窗体中的一个文本框(txtShow)中。
【程序代码】
Private Sub cmdTest_Click( )
Dim strT1 ,strT2 As String
Dim strCh As (1)
Dim intL As Integer
Dim intl As Integer
strT1 = (2) ("请输入一串字符","字符串输入")
intL = (3)
strT2 = " "
For intl = I To intL
strCh = Mid ( strT1, intl, 1 )
If(strCh>"A"And (4) ) Or (strCh >"a" And suCh <"z" )Then
strT2 = strT2 + strCh
End If
Next intl
txtShow. Text= (5)
End sub
[填空题]从键盘输入一串字符(“*”作为结束标志),将其写入文本文件file.dat中保存。
#include<stdio.h>
#include<stdlib.h>
main( )
char ch;
FILE *fp;
if((fp=fopen("file.dat","______")):=NULL)
printf("Can not open file/n");exit(0);
ch=getchar( );
while (ch!=’*’)
fputc(______,fp);
ch=getchar( );
fclose(______);
[填空题]从键盘输入一串字符("#"作为结束标志),将其写入文本文件file.dat中保存。
#include<stdio.h>
#include<stdlih.h>
main( )
{char ch;
FILE*fp:
if((fp=fopen("file.det","______"))==NULL)/*第一空*/
{printf("Can not open file/n");exit(0);}
ch=getchar( );
whil(ch!’#’)
{fputc(______,fp);/*第二空*/
ch=getchar( );
}
fclose(______); /*第三空*/
}
[填空题]以下程序中用户由键盘输入一个文件名,然后输入一串字符(用#结束输入)存放到此文件中,形成文本文件,并将字符的个数写到文件的尾部。请填空。
#include<stdio.h>
main( )
{ FILE *fp;
char ch,fname[32]; int count=0;
printf(”Input the filename:");
scanf("%s",fname);
if((fp=fopen( 【12】 ,"w+"))==NULL)
{ printf("Can’t open file:%s/n",fname);exit(0);}
printf("Enter data:/n");
while((ch=getchar( ))!=’#’)
{ fputc(ch,fp);count++;}
fprintf( 【13】 ,"/n%d/n",count);
fclose(fp);
}
[填空题]能打印出一个双引号的语句是System.out.println{"______"};。
[简答题]【说明】
在网页鼠标的后面跟随者一串飘动的字符“欢迎访问希赛教育网站”。
HTML文本如下.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>欢迎访问希赛教育网站</title>
</head> <body>
<style type="text/css">
.spanstyle
COLOR: #000000; FONT-FAMILY: 宋体; FONT-SIZE: 20pt; POSITION: absolute; TOP: -50px; VISIBILITY: visible
<!--设置鼠标后面字符的效果-->
</style>
<SCRIPT language="JavaScript">
var x,y
var step=36; //设置鼠标后面每个字符之间的间距
var flag=0;
var message="★欢迎访问希赛教育风网站!", //鼠标后面跟随着的字符
message= (1) ; //将整个字符串转化为单一元素的字符串数组
var xpos=new Array( ); //每个字符的水平位置初始化
for (i=0;i<=message.length-1 ;i++)
xpos[i]= 50;
var ypos=new Array( ); //每个字符的竖直位置初始化
for (i=0;i<=message.length- 1 ;i++)
ypos[i]= -200;
function handlerMM(e)
//鼠标位置获取
x = (document.layers) e.pageX: document.body. scrollLeft+event.clientX:
y = (document.layers) e.pageY: doc
[填空题]下面程序要实现的功能是打开当前目录下的文件abc,并向其追加一串字符“How are you!”,然后再关闭该文件,请将程序填写完整。
#include<fstream.h>
void main( )
[13]
f<<"How are you!"<<end1;
f.close( );
[单项选择]假设有一Excel工作表,在Al单元格输入“11/2”(只输入双引号之内的内容,注意有空格),在A2单元格输入“21/2”,则MAX(A1,A2)的结果是______。
A. 11/2
B. 2
C. 21/2
D. 2.5
[单项选择]假设有一Excel工作表,在A1单元格输入“1 1/2”(只输入双引号之内的内容,注意有空格),在A2单元格输入“2 1/2”,则MAX (A1,A2)的结果是 (57) 。
A. 1 1/2
B. 2
C. 2 1/2
D. 2.5