admin 管理员组

文章数量: 1086019


2024年3月14日发(作者:dockerfile覆盖文件)

移动应用开发选择题

1. Open Perspective的意思是 ( ) [单选题]

A、打开预览

B、打开透视图(正确答案)

C、打开面板

D、打开调试

2. Android程序打包发布生成的可执行文件的扩展名是 ( ) [单选题]

A、exe

B、com

C、msc

D、apk(正确答案)

3.有一个类Student,以下为其构造方法的声明,其中正确的是 ( ) [单选题]

A、void Student(int x){...}

B、Student(int x){...}(正确答案)

C、s(int x){...}

D、void s(int x){...}

4. 设A为已定义的类名,下列声明A类的对象a的语句中正确的是 ( ) [单选题]

A、public A a=new A ();(正确答案)

B、public A a=A ();

C、A a=new class ();

D、a A;

Layout中设置组件水平排列时,属性android:orientation的值应为 ( ) [单选

题]

A、bottom

B、right

C、vertical

D、horizontal(正确答案)

6. RelativeLayout中设置为当前对象的下方留出空白的属性参数是 ( ) [单选题]

A、layout_toTightOf

B、layout_alignTop

C、layout_marginBottom(正确答案)

D、layout_alignBottom

7. 在 Android 中,所有 UI 组件的基类是 ( ) [单选题]

A、Object 类

B、View 类(正确答案)

C、ViewGroup 类

D、UIView 类

8. 在 Android 中,哪个布局管理器中允许多个组件层叠排序 ( ) [单选题]

A、线性布局管理器( LinearLayout)

B、表格布局管理器( TableLayout)

C、帧布局管理器( FrameLayout)(正确答案)

D、相对布局管理器( RelativeLayout)

9. 在 Android 中,Toast 类一定要调用 ( )方法显示消息提示框,否则设置的消息提

示框将不显示 [单选题]


本文标签: 打开 管理器 设置 组件 布局