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

题目内容 (请给出正确答案)

执行下列代码后,得到的结果是______。 import tensorflow as tf a = tf.constant(3) x = tf.Variable(a) print(isinstance(a, tf.Tensor), isinstance(a, tf.Variable)) print(isinstance(x, tf.Tensor), isinstance(x, tf.Variable))

A.True False False True

B.False True True False

C.True True False False

D.False False True True


参考答案和解析
B
更多 “执行下列代码后,得到的结果是______。 import tensorflow as tf a = tf.constant(3) x = tf.Variable(a) print(isinstance(a, tf.Tensor), isinstance(a, tf.Variable)) print(isinstance(x, tf.Tensor), isinstance(x, tf.Variable))A.True False False TrueB.False True True FalseC.True True False FalseD.False False True True” 相关考题
考题 下列程序执行后,输入结果是()。 For n = 3 To 1 Step - 1 x$ = String$(n,"#") Print x$ Next inA. 1# 2# 3# B. ### ## #C. # ## ### D. 3# 2# 1#

考题 表达式isinstance(4j,(int,float,complex))的值为__________。

考题 表达式isinstance(3,object)的值为_____________。

考题 下列VB程序运行后,变量x的值为( )x=2Print x+1Print x+2A.2B.3C.5D.8

考题 下列块结构条件语句,正确的是( )。A.If x>10 Then print"a" Else if x>5 Then print"b" Else if x<5 Then print"c" End ifB.if x>10 Then print"a" Else if x>5 Print"b" Else Print"c" End ifC.If x>10 Then print"a" Else if x>5 Then print"b" Else x<5 Then Print"c" End ifD.If x>10 Then Print"a" Else if x>5 Then print"b: Else Print"c" End if

考题 下列程序段的执行结果是【 】。x=Int(Rnd+4)Select Case XCase 5Print"优秀"Case 4Print"良好"Case 3Print"合格"Case ElsePrint"不合格"End Select

考题 运行下面程序后,正确的输出结果是 ______。Private Sub Command1_ Click() x = 6 if x >6 then Print "x>6": Else if x <8 then Print "x<8"; Else if x = 6 then Print "x=6": End if End if End ifEnd SubA.x<8 x=6B.x<8C.x=6D.x<8或x=6

考题 假设X的值是5,则执行以下语句时,可得到的输出结果是ABCDEF的Select Case语句是 ( )A.Select Case X Case 10 To 1 Print“ABCDEF” End SelectB.Select Case X Case Is>15,Is<5 Print"ABCDEF" End SelectC.Selecl Case K Case Is>5,1,3,To 10 Print"ABCDEF" End SelectD.Select Case X Case 1,3,Is>5 Print"ABCDEF" End Select

考题 已知x代表某个百分制成绩,下列程序段用于显示对应的五级制成绩,正确的是( )A.If x>=60 Then Print"及格" Else If x>=70 Then Print"中" Else If x>=80 Then Print"良" Else If x>=90 Then Print"优" Else Print"不及格" End IfB.If x<90 Then Print"良" Else If x<80 Then Print"中" Else If x<70 Then Print"及格" Else If x<60 Then Print"不及格" Else Print"优" End IfC.If x>=90 then Print"优" Else If x>=80 Then Print"良" Else If x>=70 Then Print"中" Else If x>=60 Then Print"及格" Else Print"不及格" End If End SelectD.Select Case x Case x>=90 Print"优" Case x>=80 Print"良" Case x>=70 Print"中" Case x>=60 Print"及格" Case Else Print"不及格"

考题 下列程序执行后,输出结果是( )。For n=3 To 1 Step-1x$=String$(n,"#")Print x$Next nA.1# 2# 3#B.)### ## #C.# ## ##D.3# 2# 1#

考题 下列程序执行后,输出的结果是______。 public class exl7 { public static void main(String[] args) int a=3; int b=4; int x=5; if(++a<b) x=x+a; else if(a--<-b) x-x-a; System.cut.print(x); } }A.4B.5C.3D.2

考题 有下列程序: fun(int x) {int p; if(x= =0 ‖ x= =1) return(3); p=x-fun(x-2); return p; } main( ) { print f("%d\n",fun(7 ));} 执行后输出的结果是( )。A.7B.3C.2D.0

考题 执行语句x=987654.0321,输出x的值时要求加千位分隔符,小数点后取3位有效数字,下列输出语句中正确的是( )。A.Print Format$(x,#####,#.###)B.Print Format$(x,"###,###.###")C.Print Format$(x,"#####,###")D.Print Format$(x,",#####.###")

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

考题 下列程序执行的结果是______。 Private Sub Command1_Click() x=25 If x>0 Then y=1 If x>10 Then y=2 If x>20 Then y=3 If x>30 Then y=4 Print y End SubA.1B.2C.3D.4

考题 执行以下语句后显示结果为______。 Dim x As Integer If X Then Print x Else Print X-1A.1B.0C.-1D.不确定

考题 下面程序段执行结果为 x=Int(Rnd()+3) Select Case x Case 5 Print "excellent" Case 4 Print "good" Case 3 Print"pass" Case Else Print"fail" End SelectA.excellentB.goodC.passD.fail

考题 表达式isinstance(’Helloworld’,str)的值为()。

考题 表达式isinstance(’4’,(int,float,complex))的值为()。

考题 下面程序段运行后,显示结果是()。DimxIf x Then Print x Else Print x+1A、0B、1C、-1D、显示出错信息

考题 下列程序段:Dim x If x Then Print x Else Print x+1运行后,显示的结果是()。A、1B、0C、-1D、出错

考题 填空题表达式isinstance(’4’,(int,float,complex))的值为()。

考题 单选题python中,isinstance()返回的值是()A 列表B 元组C intD 布尔

考题 单选题下面程序段运行后,显示结果是()。DimxIf x Then Print x Else Print x+1A 0B 1C -1D 显示出错信息

考题 单选题下列程序段:Dim x If x Then Print x Else Print x+1运行后,显示的结果是()。A 1B 0C -1D 出错

考题 填空题表达式isinstance(3,object)的值为()。

考题 填空题表达式isinstance(4j,(int,float,complex))的值为()。

考题 单选题isinstance(‘aaa’,str)的返回值是()A aaaB trueC TrueD False