填空题If the function f is defined by f(x)= (2x-4)/3 for what value of x does f(x) = 18?____

填空题
If the function f is defined by f(x)= (2x-4)/3 for what value of x does f(x) = 18?____

参考解析

解析:
因为f(x)= (2x-4)/ 3=18,2x - 4 = 54,x = 29。

相关考题:

在窗体上画1个命令按钮,其名称为Command1,然后编写如下程序:Private Sub Command1_Click()Dim a(10)As IntegerDim x As IntegerFor i=1 To 10a(i)=8+iNextx=2Print a(f(x)+x)End SubFunction f(x As Integer)x=x+3f=xEnd Function程序运行后,单击命令按钮,输出结果为( )。A.12B.15C.17D.18

( 25 )在窗体上画 1 个命令按钮,其名称为 Command1 ,然后编写下列程序:Private Sub Command1_Click( )Dim a ( 10 ) As IntegerDim x As IntegerFor i=1 To 10a(i)=8+iNextx=2Print a(f(x)+x)End SubFunction f(x As Integer)x=x+3f=xEnd Function程序运行后,单击命令按钮,输出结果为( )。A ) 12B ) 15C ) 17D ) 18

解下列方程:(1)4x-2=3-x ;(2)-7x+2=2x-4 ;(3)-x=-2x/5+1(4)2x-1/3=-x/3+2

在窗体上画1个命令按钮,其名称为Command1,然后编写如下程序: Private Sub Command1 Click() Dim a(10) As Integer Dim x As Integer For i=1 To 10 a(i)=8+i Next x=2 Print a(f(x)+x) End Sub Function f(x As Integer) x=x+3 f=x End Function 程序运行后,单击命令按钮,输出结果为______。A.12B.15C.17D.18

下面子过程语句说明合法的是( )。A.Function f1(By Valn%)B.Sub f1(n%)As IntegerC.Function f1%(f1%)D.Sub f1(ByValn%())

下列子过程语句中正确的是 A.Sub f1(By Val()As Integer) B.Sub f1(n()As Integer)As Integer C.Function f1(f1 As Integer)As Integer D.Function f1(By Val f As Integer)

(33)下列子过程语句的说明正确的是A.Sub f1(By Val x()As Integer) B.Sub f1(X%())As IntegerC.Function f1l%(f1%) D.Function f1%(x As Integer)

在窗体上画一个命令按钮,命名为Command1。程序运行后,如果单击命令按钮,则显示一个输入对话框,在该对话框中输入一个整数,并用这个整数作为实参调用函数过程F1,在F1中判断所输入的整数是否是奇数,如果是奇数,过程F1返回1,否则F1返回1,否则返回0。能够正确实现上述功能的代码是 。A.Private Sub Command1_Click() x=InputBox("请输入整数") a=F1(Val(x)) Print a End Sub Function F1(ByRef b As Integer) If b Mod 2=0 Then Return 0 Else Return 1 End If End FunctionB.Private Sub Command1_Click() x=InputBox("请输入整数") a=F1(Val(x)) Print a End Sub Function F1(ByRef b As Integer) If b Mod 2=0 Then F1= 0 Else F1= 1 End If End FunctionC.Private Sub Command1_Click() x=InputBox("请输入整数") F1(Val(x)) Print a End Sub Function F1(ByRef b As Integer) If b Mod 2=0 Then F1= 1 Else F1= 0 End If End FunctionD.Private Sub Command1_Click() x=InputBox("请输入整数") F1(Val(x)) Print a End Sub Function F1(ByRef b As Integer) If b Mod 2=0 Then Return 0 Else Return 1 End If End Function

下面子过程说明合法的是( )。 A、Sub f1(ByVal n%())B、 Sub f1(%)As integerC、 Function f1%(f1%)D、 Function f1(ByVal n%)

设有如下程序: Private Static Function Fac(n As Integer)As Integer Dim f As Integer f=f+n Fac=f End Function Private Sub Form_Click( ) Dim I As Integer For 1=2 To 3 Print"#";I“=”Fac(1) Next I End Sub 程序运行后,单击窗体,在窗体上显示的是A.#2=2 #3=3B.#2=2 #3=5C.#;2=2 #;3=3D.#;2=2 #3;=5

现有如下程序: Private Sub Command1_Click() s=0 For i=1 To 5 s=s+f(5+i) Next Print s End Sub Public Function f(x As Integer) If x>=10 Then t=x+1 Else t=x+2 End If f=t End Function 运行程序,则窗体上显示的是( )。A.38B.49C.61D.70

在窗体上画一个命令按钮,命名为CommandI。程序运行后,如果单击命令按钮,则显示一个输入对话框,在该对话框中输入一个整数,并用这个整数作为实参调用函数过程 F1,在F1中判断所输入的整数是否是奇数,如果是奇数,过程F1返回1,否则返回0。 能够正确实现上述功能的代码是A.Privme Sub Command1_Click() x=InputBox(“请输入整数”) a=F1(Val(x)) Print a End Sub Function F1(ByRef b As Integer) If b Mod 2=0 Then Return 0 Else Return 1 End If End FunctionB.Private Sub Command1_Click() x=InputBox(“请输入整数”) a=F1(Val(x)) Print a End Sub Function F1(ByRef b As Integer) If b Mod 2=0 Then F1=0 Else F1=1 End If End FunctionC.Private Sub Command1_Click() x=InputBox(“请输入整数”) F1(Val(x)) Print a End Sub Function F1(ByRef b As Integer) If b Mod 2=0 Then F1=1 Else F1=0 End If End FunctionD.Private Sub Command1_Click() x=InputBox(“请输入整数”) F1 (Val(x)) Print a End Sub Function F1(ByRef b As Integer) If b Mod 2=0 Then Return 0 Else Return 1 End If End Function

下面子过程语句说明合法的是A.Sub f1(s1 As String*8)B.Sub f1(n()As Integer)As IntegerC.Function f1(f1 As Integer)As IntegerD.Function f1(By Val n As Integer)

设有一个命令按钮Command1的事件过程以及一个函数过程,程序如下:Private Sub Command1_Click()Static x as integerX=f(x+5)ClsPrint xEnd SubPrivate function f(x as integer)as integerF=x+xEnd function连续单击命令按钮3次,第3次单击命令按钮后,窗体上显示的计算结果是A)10B)30C)60D)70

使用VC6打开考生文件夹下的工程test8_1,此工程包含一个源程序文件test8_l.cpp,但该程序运行有问题,请改正程序中的错误,使程序的输出结果如下:f1 function of derivef2 function of basef4 function of base源程序文件test8_1.cpp清单如下;include<iostream.h>class base{public:/*********found**********/void f1(){cout<<"f1 function of base"<<endl;}virtual void f2(){cout<<"f2 function of base"<<endl;)virtual void f3(){cout<<"f3 function of base"<<endl;)void f4(){cout<<"f4 function of base"<<endl;)};/*******+*found**********/class derive::public base{void f1(){cout<<"f1 function of derive"<<endl;)void f2(int X){cout<<"f2 function of derive"<<endl;)void f4(){cout<<"f4 function of derive"<<endl;)};void main(){base *p;derive obj2;/******+**found**********/p=obj2;p->fl();p->f2();p->f4();}

在窗体上画一个名称为Text1的文本框,一个名称为Command1的命令按钮,然后编写如下事件过程和通用过程: Private Sub Command1_Click() n = Val(Text1.Text) If n\2 = n/2 Then f = f1(n) Else f = f2(n) End If Print f; n End Sub Public Function f1(ByRef x) x=x*x f1=x+x End Function Public Function f2(ByVal x) x=x*x f2=x+x+x End Function 程序运行后,在文本框中输入6,然后单击命令按钮,窗体上显示的是A.72 36B.108 36C.72 6D.108 6

在窗体上画一个命令按钮,其名称为Commandl,然后编写如下程序: Pfivate Sub Commandl_Click() Dima(10) As Integer Dimx As Integer Fori=1 To 10 a(i)=8+i NeXt X=2 Print a(f(x)+x) End Sub Function f(X As Integer) X=X+3 f=X End FuA.12B.15C.17D.18

下列子过程语句的说明正确的是( )。A.Sub f1(ByVal x()As Integer)B.Sub f1(x%())As IntegerC.Function f1%(f1%)D.Function f1%(x As Integer)

设有一个命令按钮Command1的事件过程以及一个函数过程。程序如下: Private Sub Command1 Click( ) Static x A S Integer x=f(x+5) Cls Print X End Sub Private Function f(x As Integer)As Integer f=x+x End Function 连续单击命令按钮3次,第3次单击命令按钮后,窗体显示的计算结果是( )。A.10B.30C.60D.70

设有Function过程:Private Function f(a As Integer, b As Integer) As Integera = a * a:b = b * bf = CInt(Sqr(a - b))End Function则如下程序段的运行结果是( )。Private Sub Command1_Click()Dim X As Integer, Y As IntegerX = 5: Y = 4a = f(X, Y)Print aEnd SubA. 5B. 4C. 3D. 9

在窗体上画一个名称为Text1的文本框,一个名称为Command1的命令按钮,然后编写如下事件过程和通用过程:Private Sub Command1_Click()n = Val(Text1.Text) If n\2 = n/2 Then f = f1(n)Else f = f2(n)End IfPrint f; nEnd SubPublic Function f1(ByRef x)x=x*xf1=x+xEnd FunctionPublic Function f2(ByVal x)x=x*xf2=x+x+xEnd Function程序运行后,在文本框中输入6,然后单击命令按钮,窗体上显示的是( )。A.72 36B.108 36C.72 6D.108 6

设f(x)是R上的可导函数,且f(x)>0。若f′(x)-3x---2f(x)=0,且f(0)=1,求f(x)。

已知函数x(t)的傅里叶变换为X(f),则函数y(t)=2x(3t)的傅里叶变换为()A、2X(f/3)B、2/3X(f/3)C、2/3X(f)D、2X(f)

已知列表x=[1,3,2],那么表达式[valu for index,value in enumerate(x)if index==2]的值为()。

单选题以下是子过程或函数过程定义中的开始语句,错误的为()。APrivate Function f( x As String ) As SingleBPrivate Function f( x As String )CPrivate Sub f( x As String ) As SingleDPrivate Sub f( x As String )

填空题Let f(x) be defined as the absolute value of the difference between the smallest and largest odd factors of x greater than 1. For example, f(42)=︱3-21︱=18. What is the value of f(90)?____

填空题已知列表x=[1,3,2],那么表达式[valu for index,value in enumerate(x)if index==2]的值为()。