读书人

CVT电子集团公司-笔试部分试题

发布时间: 2013-09-11 16:26:28 作者: rapoo

CVT电子集团--笔试部分试题

之前有在网上答了下CVT的网上笔试题,特别把它们都弄下来,答案参考,不一定是对的,有错希望大家能提出来。

1、有关系R和S,R∩S等价于(B)

A、S-(R-S) B、R-(R-S) C、(R-S)US D、RU(R-S)

2、";

 1 public class Z{ 2     public static void main(String[] args){new Z();} 3     private Z(){ 4         Z alias1=this; 5         Z alias2=this; 6         synchronized(alias1){ 7             try{ 8                 alias2.wait(); 9                 System.out.println("DONE WAITING");10             }11             catch(InterruptedException e){12                 System.out.println("INTERR UPTED");13             }14             catch(Exception e){15                 System.out.println("OTHER EXCEPTION");16             }17             finally{18                 System.out.println("FINALLY");19             }20         }21         System.out.println("ALL DONE");22     }23 }

30、输出712的N次方,结果后三位为696的N的个数,0<N<24669(246)

 1 #include<stdio.h> 2 int main(){ 3     int sum=712,count=0; 4     for(int i=0;i<24669;i++) 5     { 6         sum=sum*712%1000; 7         if(sum==696) 8             count++; 9     }10     printf("输出712的N次方,结果后三位为696的N的个数为:%d  (0<N<24669)",count);11     scanf("%d",&count);12 }

31、输出下面的第三行的结果(1)

public class exam{    public static void main(String []args){        String overview="This chapter contains a description of convertions used in this manual";        for(int i=0;i<overview.length();i++){            int num=0;            for(int j=0;j<overview.length();j++){                if(overview.charAt(i)==overview.charAt(j))                    num++;            }            System.out.println(num);        }    }}

32、输出下面程序的结果:

dog
cat
boy
apple

 1 public class exam{ 2     public static void main(String []args){ 3         String overivew="apple boy cat dog"; 4         String[] arr=overivew.split(" "); 5         int len=arr.length; 6         for(int i=1;i<=len;i++){ 7             System.out.println(arr[len-i]+" "); 8         } 9     }10 }

33、为了使索引键的值在基本表中唯一,在建立索引语句中应使用保留字(A)

A、 UNIQUE B、COUNT C、DISDINCT D、UNION

34、苹果ios操作系统上的应用开发语言是(C)

A、C B、C++ C、Objective c D、java E、Python

35、Android的IPC(进程通讯)主要采用以下哪个?(C)

A、Socket B、Pipe C、Binder D、Signal

36、不属于构造函数特征的是—)

A、构造函数的函数名与类名同名 B、构造函数可以重载 C、构造函数可以设置缺省(默认)参数 D、构造函数必须指定类型说明

37、以下数据结构中哪一个是非线性结构()

A、

读书人网 >软件开发

热点推荐