设x=2.5,a=7,y=4.7,则x+a%3×(int)(x+y)%2/4为()。
第1题:
若有定义: int a=7;float x=2.5,y=4.7;则表达式x+a%3,(int)(x+y)%2/4的值是( )。
A.2.5
B.2.75
C.3.5
D.0
第2题:
若有定义:inta=7;floatx=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是()。
A.2.500000
B.2.7500OO
C.3.500000
D.0.000000
第3题:
若有定义intx=3,y=2和floata=2.5,b=3.5,则表达式:(x+y)%2+(int)a/(int)b的值是()。
A.0
B.2
C.1.5
D.1
第4题:
已有定义:int x=3,y=4,z=5,则表达式!(x+y)+z-1&&y+x/2的值是
A.6
B.0
C.2
D.1
第5题:
有以下程序: #include<stdioh> int fun(int x,int y) {if(x!=y)return(y); else return((x+y)/2); } main() {int a=4,b=5,c=6; printf("%d\n",fun(2*a,fun(b,C))); } 程序运行后的输出结果是( )。
A.3
B.6
C.8
D.12
第6题:
有以下程序: #include<stdio.h> int fun(int x,int y) {if(x==y)return(x); else return((x+y)/2); } main() {int a=1,b=2,c=3; printf("%d\n",fun(2*a,fun(b,C))); } 程序运行后的输出结果是( )。
A.2
B.3
C.4
D.5
第7题:
设x和y均为int型变量,则执行下面的循环后,y值为( )。#include <iostream.h>void main(){int x, y;for(y= 1,x= 1 ;y<=50;y++){ if(x>=10) }break;if (x%2==1){ x+=5; continue;} x-=3;} cout<<y;
A.2
B.4
C.6
D.8
第8题:
第9题:
设a=2,b=3,x=3.5,y=2.5,则(float)(a+b)/2+(int)x%(int)y为()。
第10题:
设随机变量X与Y相互独立,X~π(2),Y~π(3),则P{X+Y≤1}=()。
第11题:
设以下变量均为int类型,则值不等于7的表达式是()。
第12题:
第13题:
设x=2.5、a=7、y=4.7,算术表达式x+a%3 * (int)(x+y)%2/4的值为 ( )
A.2.5
B.7
C.4.7
D.2.75
第14题:
已知有double型变量x=2.5,y=4.7,整型变量a=7,则表达式x+a%3*(int)(x+y)%2/4的值是()。
A.2.4
B.2.5
C.2.75
D.0
第15题:
有以下程序 #include<stdio.h> int fun(int x;int y) { if(x=y)reurn(x); else return((x+y)/2); } main() { int a=4,b=5,c=6; printf("%d\n",fun(2*a,fun(b,c))); } 程序运行后的输出结果是______。
A.3
B.6
C.8
D.12
第16题:
已有定义int x=3, y=4, z=5;则表达式“!(x+y)+z-1y+z/2”的值是________。
A.6
B.0
C.2
D.1
第17题:
若有定义:int x=1,y=2;float a=3.7,b=2.1;则(x+y)%2+(int)a/(int)b表达式的值为( )。
第18题:
设以下变量均为int类型,则值不等于7的表达式是
A.(x=y=6,x+y,X+1)
B.(x=y=6,x+y,y+1)
C.(x=6,x+1,y=6,x+y)
D.(y=6,y+1,x+y,x+1)
第19题:
若有定义:floatx=3.5,y=3.6;则表达式()的值为6。
A.(int)x+(int)y
B.x+y
C.(int)(x+y)
D.int(x+y)
第20题:
若有int x=3,y=4,z=5; ,则表达式 !(x+y)+z-1 && y+z/2的值是()
第21题:
设以下变量都是int类型,则值不等于7的表达式是()。
第22题:
已知有double型变量x=2.5,y=4.7,整型变量a=7,则表达式x+a%3*(int)(x+y)%2/4的值是()。
第23题:
x=y=6,x+y,x+1
x=y=6,x+y,y+1
x=6,x+1,y=6,x+y
y=6,y+1,x=y,x+1