以下那个javascript语句是正确的()
A: var.temp;temp=”hello”;
B: String.temp;temp=”hello”;
C: Int.temp;temp=k;
D: Boolean.temp;temp=false;
A: var.temp;temp=”hello”;
B: String.temp;temp=”hello”;
C: Int.temp;temp=k;
D: Boolean.temp;temp=false;
A
举一反三
- Linux终端执行temp=world;echohello$temp上述命令执行的结果为()。 A: helloworld B: hello$temp C: hello world D: hello
- (2-5)执行下面语句,temp值是( )。long temp = (int) 5.6;temp %= 2;
- 定义一个函数实现交换x和y的值,并将结果正确返回。能够实现此功能的是() A: swapa(int x,int y){ int temp;temp=x;x=y;y=temp;} B: swapb(int *x,int *y){ int temp;temp=x;x=y;y=temp;} C: swapc(int *x,int *y){ int temp;temp=*x;*x=*y;*y=temp;} D: swapd(int *x,int *y){ int *temp;temp=x;x=y;y=temp;}
- 若定义某字节变量temp=0x01;下列可以实现temp右移三位的语句是? A: temp=temp>>3; B: temp=temp<<3; C: temp=_crol_(temp,3); D: temp=_cror_(temp,3);
- 在 java 语言中, 下列语句中正确的是哪个? ( ) A: String temp[]=new String{"a" "b" "c"}; B: String temp[]={"a" , "b" , "c"}; C: String temp={"a" "b" "c"}; D: String temp[]={"a","b","c"};
内容
- 0
在C51中有个无符号型字符变量temp 和一个位变量flag,要对它们取反,相应的C51语句为( )。 A: temp=~temp ; flag=!flag B: temp=!temp ; flag=~flag C: temp=!temp ; flag=!flag D: temp=~temp ; flag=~flag
- 1
在Java语言中,下列语句中正确的是()。 A: String temp[] = new String{"j""a""z"}; B: String temp[] = {"j""a""z"}; C: String temp = {"j""a""z"}; D: String temp[] = new String[]{"j","a","z"};
- 2
下面哪个选项可以交换指针p和q所指的int型变量的值? A: temp = *p; *p = *q; *q = temp; B: temp = p; p = q; q = temp; C: temp = p; *p = *q; q = temp; D: temp = &p; *p = *q; q = *temp;
- 3
从串口接收缓冲器中将数据读入到变量temp中的C51语句是( ) A: temp=SCON; B: temp=TCON; C: SBUF=temp; D: temp=SBUF;
- 4
从串口接收缓冲器中将数据读入到变量temp中的C51语句是 A: temp=SCON B: temp=PCON C: temp=SBUF D: SBUF=temp