网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
语句Print Sgn(-6^2)+Abs(-6^2)+Int(-6^2)的输出结果是(  )。
A

-36

B

1

C

-1

D

-72


参考答案

参考解析
解析:
Sgn(x)函数用于求x的符号,当x>0,返回1;当x=0,返回0;当x<0返回-1。Abs(x)用于求x的绝对值。Int(x)用于取小于等于x的最大整数。此表达式经过计算之后为:-1+36+(-36)=-1。
更多 “单选题语句Print Sgn(-6^2)+Abs(-6^2)+Int(-6^2)的输出结果是(  )。A -36B 1C -1D -72” 相关考题
考题 窗体上有语句Printsgn(-5.1^2)+Abs(Int(-5.1^2)),运行后输出结果是( )。A.52.2B.25.01C.26D.28

考题 ( 6 )下列语句的输出结果是 【 6 】 。Print Format(Int(12345.6789*100+0.5)/100,"00,000.00")

考题 语句:print sgn(-6^2)+Abs(-6^2)+int(-6^2)的输出结果是( )A.-36B.1C.-1D.-7252967.以下语句a=sqr(3)print format(a,####.###)的输出结果是( )A.1.732B. 0001.732C.###1.732D. 1.7320

考题 下面程序的输出结果是()。includemain(){int a[]={1,2,3,4,5,6,7,8,7,10},*p;p=a;print 下面程序的输出结果是( )。 #include<stdio.h> main() {int a[]={1,2,3,4,5,6,7,8,7,10},*p; p=a; printf("%d\n",*p+8); }A.0B.1C.10D.9

考题 语句Print Sgn(-6^2)+Abs(-6^2)+Int(-6^2)的输出结果是( )。A..36B.1C.-1D.-72

考题 定义如下变量和数组:int i;int y[2][3]={2,4,6,8,10,12};则下面语句的输出结果是【 】。for(i=0;i<2;i++)cout<<y[1-i)[i+1]<<",";

考题 下面程序的输出结果是() include main( ) { int i,a[ ]={2,4,6,8}; int * p=a; 下面程序的输出结果是 ( ) # include<stdio.h> main( ) { int i,a[ ]={2,4,6,8}; int * p=a; for(i=0;i<4;i+ +)a[i]=* p+ +; printf(*%d\n",a[2]); }A.6B.8C.4D.2

考题 下列程序的运行结果是______。main(){int a[6],i; for(i=2;i3))%5; print 下列程序的运行结果是______。 main() { int a[6],i; for(i=2;i<6;i++) {a[i]=4*(i-2*(i>3))%5; printf("%2d",a[i]); } }A.2 3 2 3B.1 2 1 2C.3 2 3 2D.2 2 2 2

考题 语句Print Sgn(-6^2)+Abs(-6^2)+Int(-6^2)的输出结果是( )。A.-36B.1C.-1S 语句Print Sgn(-6^2)+Abs(-6^2)+Int(-6^2)的输出结果是( )。A.-36B.1C.-1D.-72

考题 语句Print Sgn(.6^2)+Abs(.6^2)+Int(.6^2)的输出结果是( )。A. .36B. 1C. -1D. .72

考题 语句Print Sgn(-5.1^2)+Abs(Int(-5.1^2))的输出结果是( )。A.52.2B.25.01C.26D.28

考题 语句Print5/4*6\5Mod2的输出结果是( )。A.0B.1C.2D.3

考题 语句Print 5/4*6\5 Mod 2的输出结果是A. 0B.1C.2D.3

考题 下列程序的执行结果是______。 X=-6^2 Print Sgn(x)+Abs(x)+Int(x)A.-36B.1C.-1D.-72

考题 设有如下程序,其调试结果为:class Q2 {public static void main(String[] args) {int[] seeds = {1,2,3,4,6,8};int n= seeds.length;for (int i = 0; ifor (int k = 0; kseeds[k]= seeds[k+1];for (int i = 0; iSystem.out.print("/t"+seeds[i]);}}A.输出: 1 2 3 4 6B.输出: 4 6 8 8 8C.输出: 2 3 4 6 8D.输出: 2 3 4 6

考题 语句Print 5/4*6\\5 Mod 2的输出结果是( )。A.0B.1C.2D.3

考题 (6)以下程序运行后的输出结果是 【6】 。#include stdio.hmain(){ int a;a=(int)((double)(3/2)+0.5+(int)1.99*2);printf("%d\n",a);}

考题 语句Print Sgn(-5^2)+Abs(-5^2)+int(-5^2)的输出结果是 ( ) A.-1B.35C.0D.6

考题 语句PrintAbs(-6^2)+Int(-6^2)的输出结果是()。A、0B、1C、-1D、-72

考题 以下程序的输出结果是()      #include      main( )  {int a,b,d=241;      a=d/100%9;  b=(-1)&&(-1);  printf(“%d,%d/n”,a,b);} A、6,1B、6,0C、2,1D、2,0

考题 语句Print Sgn(Abs(-6^2))的输出结果是()A、-1B、1C、-36D、36

考题 语句PrintAbs(6^2)+Int(-3.6^2)的输出结果是()A、-36B、1C、-1D、23

考题 语句Print(a=2)And(b=-2)的输出结果是()A、TrueB、结果不确定C、-1D、False

考题 下列程序执行的结果为() x=-62 PrintSgn(x)+Abs(x)+Int(x)A、-36B、1C、-1D、-72

考题 单选题语句PrintAbs(6^2)+Int(-3.6^2)的输出结果是()A -36B 1C -1D 23

考题 单选题语句Print Sgn(Abs(-6^2))的输出结果是()A -1B 1C -36D 36

考题 单选题语句PrintAbs(-6^2)+Int(-6^2)的输出结果是()。A 0B 1C -1D -72