填空题If t is a positive integer, and 18t is the cube of an integer, then what is the least possible value of t ?____

题目
填空题
If t is a positive integer, and 18t is the cube of an integer, then what is the least possible value of t ?____

相似考题
更多“填空题If t is a positive integer, and 18t is the cube of an integer, then what is the least possible value of t ?____”相关问题
  • 第1题:

    在窗体上画一个命令按钮,然后编写如下程序:Sub S1(ByVal x As Integer, By Val y As Integer) Dim t As Integer t=x x=y y=tEnd SubPrivate Sub Command1_ Click() Dim a As Integer, b As Integer a=10 b=30 S1 a,b Print "a=";a="b=";bEnd Sub 程序运行后,单击命令按钮,输出结果是______。

    A.a=30 b=10

    B.a=30 b=30

    C.a=10 b=30

    D.a=10 b=10


    正确答案:C
    解析:过程S1似乎是要将两个变量的值进行交换,但由于参数是用传值的方式来传递变量值的,所以执行完该过程后,a和b的值并未被交换,保持原来的值不变。

  • 第2题:

    在窗体上画—个命令按钮(名称为Command1),并编写如下代码:Function Fun1 (ByVala As Integer, b As Integer)As Integer Dim t As Integer t=a-b b=t+ a Fun 1=t+ bEnd FunctionPrivate Sub Command1_ Click() Dim x As Integer x=10 Print Fun1(Fun1 (x,(Fun1(x,x-1))),x-1)End Sub程序运行后,单击命令按钮,输出结果是 ______。

    A.10

    B.0

    C.11

    D.21


    正确答案:B
    解析:ByVal表示所声明的参数是按值传递的。因此参数值的变化只在被调用的函数或过程中有效,即只是形参的值有变化,而实参不受影响。ByRef表示所声明的参数是按地址传递的,形参值的变化都会反映在实参上。如果形参名前面缺省修饰词,默认为ByRef形式。
      程序声名了一个拥有两个形参变量的函数Fun1(),形参变量a按值传递参数,变量b按地址传递参数。执行命令按钮Command1的Click事件后,三次调用函数Fun1(),程序执行的过程如下:
    1、首先调用最里面一层的Fun1函数Fun1(x,x-1),此时,a=10,b=9,t=10-9=1,b=t+ a=1+10=11,Fun1=t+ b=12,所以第一个Fun1返回值为12。
    2、接着调用中间一层Fun1函数Fun1(x,(Fun1(x,x-1)),因为形参变量a按值传递参数,形参的变化并不影响实参,所以x的值仍为10,Fun1(x,x-1)得到的返回值为12,此时,a=10,b=12,t=10-12=-2,b=t+ a=-2+10=8,Fun1=-2+8=6,所以中间一层的Fun1返回值为6。
    3、最后调用最外一层Fun1(Fun1(x,(Fun1(x,x-1))),x-1),Fun1(x,(Fun1(x,x-1)))的返回值为6,x-1=9,此时a=6,b=9,t=10-9=-3,b=t+ a=3+6=3,Fun1=3+3=0,所以最后的值为0。

  • 第3题:

    在窗体上画一个命令按钮,名称为Command1。然后编写如下程序: Pnvate Sub Command1_Click() Dim x As Integer,y As Integer,t As Integer x=10:y=20:t=0 If x=y Then t=x:x=y:y=t Print x;y End Sub程序运行后,如果单击命令按钮,则在窗体上显示的内容是( )。

    A.10 20

    B.20 0

    C.20 10

    D.20 20


    正确答案:A
    解析:发生Command1的单击事件时,首先定义了三个变量x、y和t,并给它们赋值为10、20和0,然后判断Ⅱ后面的条件“x=y”为False,将不再执行Then后面的语句。此处需注意的是,用“:”分开的若干条语句要作为一个整体,要么都执行,要么都不执行,所以该题Then后面的三条语句都不执行。因此输出的x和y的值还是10和20。

  • 第4题:

    下列程序的执行结果为 Private Sub Comrnandl_Click( ) Dim p As Integer, q As Integer p=12:q=20 Call Value(p, q) Print p; q End Sub Private Sub Value(ByVal m As Integer, ByVal n As Integer) m=m * 2: n=n - 5 Print m; n End Sub

    A.20 12 20 15

    B.12 20 12 25

    C.24 15 12 20

    D.24 12 12 15


    正确答案:C
    解析:被调过程Value的两个参数m和n前面都有关键字“ByVal”修饰,即在主调过程调用此过程时,实参与形参之间是以传值方式传递信息的,而当实参与形参以传值方式相结合时,形参的改变并没有影响到实参,单单就这一点来说,我们可知,当程序代码执行主调过程中的PrimP;q语句时,p和q的值应不变,还是12,20,这样就能够排除选项A)和选项B)了。当主调过程调用被调过程时,把实参p,q的值分别传给形参m和n,这就是说此时形参m值为12,n值为20,执行被调过程中的m=m*2:n=n-5语句后,m值为24,n值为15,所以Printm;n后,程序输出的结果为24和15。最后程序输出的结果如选项C)所示。

  • 第5题:

    当Form1_Click事件发生时,程序的输出结果是( )。 Private Sub Form_Click() Dim M As Integer,k As Integer,t As Integer M=5:k=7 Select Case M Case Is<0 M=M+5 Case 1 To 10 t=M:M=k:k=t Case Else M=k Mod 3 End Select Print M,k,t End Sub

    A.5 5 7

    B.5 7 5

    C.7 5 5

    D.7 5 7


    正确答案:C
    解析:SelectCase语句用来实现多分支,但每次最多只执行一个分支。在本题的多分支语句中,首先判断M的值,为5,条件Case1to10成立,执行该分支,该分支的三条语句执行后,t的值为5,M的值为7,k的值为5。

  • 第6题:

    假定有以下两个过程: Sub Sl(ByVal x As Integer,ByVal y As Integer) Dim t As Integer t=x x=y y=t End Sub Sub S2(x As Integer,y As Integer) Dim t As Integer t=x x=y y=t End Sub 则以下说法中正确的是______。

    A.用过程S1可以实现交换两个变量的值的操作,S2不能实现

    B.用过程S2可以实现交换两个变量的值的操作,S1不能实现

    C.用过程S1和S2都可以实现交换两个变量的值的操作

    D.用过程S1和S2都不能实现交换两个变量的值的操作


    正确答案:B
    解析:过程定义时,如果形式参数被说明为传值(ByVal项),则过程调用只是相应位置实参的值“单向”传送给形参处理,而被调用过程内部对形参的任何操作引起的形参值的变化均不会反馈、影响实参的值。由于这个过程,数据的传递只是单向性,故称为“传值调用”的“单向”作用形式。反之,如果形式参数被说明为传址(ByRef项),则过程调用是将相应位置实参的地址传送给形参处理,而被调用过程内部对形参的任何操作引起的形参值的变化又会反向影响实参的值。在这个过程中,数据的传递具有双向性,故称为“传址调用”的“双向”作用形式。在过程定义

  • 第7题:

    单选题
    Let Ω p be defined as p2/3-p for all positive integers, p. If Ωn = s, and s is a positive integer, which of the following is a possible value for s?
    A

    1

    B

    3

    C

    5

    D

    6

    E

    8


    正确答案: A
    解析:
    根据题干Ωn =n2 /3-n=s. n为正整数,且s为正整数;根据函数可知只有当n是3的倍数时,s才能为整数,否则如果n2 /3不是整数,s也不是整数。现在可以从符合条件的n的最小值3代入到函数中。当n=3时,n2 /3-n =32 /3-3 = 3-3 = 0 = s;当n=6时,n2 /3-n = 62 /3-6 = 12-6 = 6 = s。所以故选D。

  • 第8题:

    单选题
    分析下面的PASCAL程序,给出正确的运行结果() PROGRAM mx(input,output); VAR R,s,t:integer; PROCEDURE change(a,b:integer); VAR T:integer; BEGIN A:=3*a; B:=2*b; T:=a+b; End; BEGIN R:=2;s:=4;t:=6; Change(r,s); Writeln(‘r=’,r,’s=’,s,’t=’,t)End.
    A

    r=2 s=4 t=6

    B

    r=2 s=4 t=14

    C

    r=6 s=8 t=6

    D

    r=6 s=8 t=14


    正确答案: C
    解析: 暂无解析

  • 第9题:

    填空题
    The members of set O are the integer solutions of the inequality 3x-4 ≤11, and the members of set P are the integer solutions of the inequality-4x+5<-7. What is one member of the intersection of O and P ?____

    正确答案: 4 or 5
    解析:
    因为3x-4≤11,x≤5。-4x+5<-7,x>3。满足着两个式子的x的可能的值为3 < x≤5,所以O和P的交叉点为4和5。

  • 第10题:

    单选题
    If x is an integer and y=7x+11, what is the greatest value of x for which Y is less than 50?
    A

    7

    B

    6

    C

    5

    D

    4

    E

    3


    正确答案: A
    解析:
    解答这道题的快速方法是把选项中的数值依次代入方程式,计算y的数值,直到满足条件y<50为止,即可得出答案。

  • 第11题:

    填空题
    If 6w is an integer and 21/2 < 5w < 31/2, what is the value of w?____

    正确答案: 2/3 or 0.666
    解析:
    因为根据题干2/2 < 5w < 3/2,则5/2 < 5w < 7/2,5/10 < w <7/10,又因为6w是正数,所以w一定是1/6的倍数,所以w的值为4/6 = 0.666.

  • 第12题:

    单选题
    If a and b are positive integers such that (a-4)(b-5) = 0, what is the least possible value of a + b?
    A

    5

    B

    6

    C

    8

    D

    10

    E

    11


    正确答案: A
    解析:
    如果(a-4)(b-5) = 0,所以(a-4) = 0或(b-5) =0,或两者都等于0,a = 4 或b = 5.,如果要使a + b的值最小,我们应该假设a=4,那么b可以为任何值,又因为b的值为正整数,所以b的最小值为1,所以a + b最小的可能值为4+1=5。

  • 第13题:

    在窗体上画一个命令按钮,然后编写如下程序: Sub S1(By Val x As Integer, By Val y As Integer) Dim t As Integer t=x x=y y=r End Sub Private Sub Command1_Click() Dim a As Integer, b As Integer a=10 b=30 S1 a,b Print"a=";"b=";b End Sub 程序运行后,单击命令按钮,.输出结果是______。

    A.a=30 b=10

    B.a=30 b=30

    C.a=10 b=30

    D.a=10 b=10


    正确答案:C
    解析:过程S1似乎是要将两个变量的值进行交换,但由于参数是用传值的方式来传递变量值的;所以执行完该过程后,a和b的值并未被交换,保持原来的值不变。

  • 第14题:

    单击一次窗体之后,下列程序代码的执行结果为______。 Private Sub Command1_ Click() Dim a As Integer, b As Integer, c As Integer a = 1: b = 2: c = 4 Print Value(a, b,C)End Sub Function Num(x As Integer, y As Integer, z As Integer) Num = x * x + y * y + z * z End Function Function Value(x As Integer, y As Integer, z As Integer) Value = Num(x, y, z) + 2 * x End Function

    A.21

    B.23

    C.19

    D.35


    正确答案:B

  • 第15题:

    在窗体上画一个按钮,然后编写如下事件代码。单击按钮,输出为 ______。 Private Function fun3(x As Integer) Static t As Integer t = t + 3 t = t + x fun3 = t End Function Private Sub Commandl Click() Dim a As Integer, b As Integer, c As Integer a = 2 : b = 1 c = fun3 (A)c = fun3 (B)Print c End Sub

    A.6

    B.8

    C.9

    D.12


    正确答案:C
    解析:当单击按钮时,首先调用fun3函数过程,把a的值按地址传递给形参x,在fun3函数中首先定义了一个静态变量t,通过两条赋值语句使t的值变为5,5作为函数的返回值并赋值给c;再一次调用fun3函数,此时需注意,静态变量依旧保持上次退出时的5,所以执行下面的两条语句后,a的值是9,把9作为函数的返回值并赋值给c,因此c的输出值为9。

  • 第16题:

    Which of the following constraint types can be used to ensure the value of an INTEGER column references only positive values?()

    A.Unique

    B.Check

    C.Referential

    D.Informational


    参考答案:B

  • 第17题:

    在窗体上画一个命令按钮,然后编写如下程序: Private Sub Commandl_Click( ) Dim a AS Integer,b As Integer a=15 b=2 t N(a,B)End Sub Function N(x As Integer,y As Integer) As Integer N=IIf(x)y,x,y) End Function 程序运行后,单击命令按钮,输出结果为

    A.1

    B.2

    C.15

    D.8


    正确答案:C
    解析:事件过程N的作用是输出两个数中最大的,它调用了IIF函数,条件部分是(x〉y),如果满足,那么N的值即为x的值,否则为y的值。在Sub过程中,定义了两个变量a,b,并赋给它们初值15,2,并调用Print函数,输出N(a,b)的值,因为x〉y,所以输出15。

  • 第18题:

    Which of the following constraint types can be used to ensure the value of an INTEGER column references only positive values?()

    • A、Unique
    • B、Check
    • C、Referential
    • D、Informational

    正确答案:B

  • 第19题:

    问答题
    If 4 percent of (p + q) is 8 and p is a positive integer, what is the greatest possible value of q ?

    正确答案: 199
    解析:
    这是一道数学题,(p + q)的4%是8,因此p+q=200,设p=1,1是最小的正整数,则可知q的最大值是199。

  • 第20题:

    单选题
    What is the smallest integer value of x that satisfies the inequality 4-3x < 11?
    A

    -3

    B

    -2

    C

    -1

    D

    0

    E

    1


    正确答案: A
    解析:
    Solution 1: If 4-3x < 11, then -3x < 7, so x > -7/3. Since -7/3 is between -2 and -3, the smallest integer value of x that satisfies this inequality is -2. Solution 2: Plug each of the answer choices for x, starting with A., into 4-3x < 11 until you find one that makes the inequality a true statement. Choice A. gives 4-3(-3) < 11, 13 < 11 which is not a true statement. Choice B. gives 4-3(-2) < 11, 10 < 11 which is true, so there is no need to continue.

  • 第21题:

    单选题
    For all positive integers a and b, let (a|b)=(a-b)/(a+b) If m is a positive integer, what is (m|2m) ?
    A

    -1/2

    B

    -1/3

    C

    1/3

    D

    1/2

    E

    2


    正确答案: D
    解析:
    (m|2m)=(m-2m)/(m+2m)=-1/3。

  • 第22题:

    单选题
    What is the least possible value of (x+1)2 if -2≤x≤3?
    A

    -2

    B

    3

    C

    -1

    D

    0

    E

    1


    正确答案: E
    解析:
    Since (x+1) 2 is the square of a number, the least possible square of a real number must be 0.

  • 第23题:

    填空题
    If t is a positive integer, and 18t is the cube of an integer, then what is the least possible value of t ?____

    正确答案: 12
    解析:
    因为13=1, 23 =8, 33=27, 43 =64, 53=125这几项等不能被18整除,而第六项63=216能被18整除因为216= 18×12,所以t=12。

  • 第24题:

    填空题
    k is an integer between 50 and 90 and is a multiple of 4. When k is divided by 5, the remainder is 3. When k is divided by 3, the remainder is 2. What is the value of k?____

    正确答案: 68
    解析:
    因为50和90之间的是4的倍数的数为52, 56, 60, 64, 68, 72, 76, 80, 84, 88。被5除余3的数为68和88。被3除余2的数为68。