世界知名电子企业笔试题

时间:2022-05-08 12:36:10 试题试卷 收藏本文 下载本文

世界知名电子企业笔试题(通用9篇)由网友“阿瑟请坐”投稿提供,下面小编为大家整理后的世界知名电子企业笔试题,希望能帮助大家!

世界知名电子企业笔试题

篇1:知名公司经典算法笔试题

知名公司经典算法笔试题

微软

有一个整数数组,请求出两两之差绝对值最小的值,记住,只要得出最小值即可,不需要求出是哪两个数,

写一个函数,检查字符是否是整数,如果是,返回其整数值。(或者:怎样只用4行代码编写出一个从字符串到长整形的函数?)

给出一个函数来输出一个字符串的所有排列。

请编写实现malloc内存分配函数功能一样的代码。给出一个函数来复制两个字符串A和B。字符串A的后几个字节和字符串B的前几个字节重叠。

怎样编写一个程序,把一个有序整数数组放到二叉树中?

怎样从顶部开始逐层打印二叉树结点数据?请编程。

怎样把一个链表掉个顺序(也就是反序,注意链表的边界条件并考虑空链表)?

请编写能直接实现int atoi(const char * pstr)函数功能的代码。

编程实现两个正整数的除法,编程实现两个正整数的除法,当然不能用除法操作符。1// return x/y.2int div(const int x, const int y)3{4 ....5}

在排序数组中,找出给定数字的出现次数,比如 [1, 2, 2, 2, 3] 中2的出现次数是3次,

平面上N个点,每两个点都确定一条直线,求出斜率最大的那条直线所通过的两个点(斜率不存在的情况不考虑)。时间效率越高越好。

一个整数数列,元素取值可能是0~65535中的任意一个数,相同数值不会重复出现。0是例外,可以反复出现。请设计一个算法,当你从该数列中随意选取5个数值,判断这5个数值是否连续相邻。注意:

5个数值允许是乱序的。比如: 8 7 5 0 6

0可以通配任意数值。比如:8 7 5 0 6 中的0可以通配成9或者4

0可以多次出现。

复杂度如果是O(n2)则不得分。

设计一个算法,找出二叉树上任意两个结点的最近共同父结点。复杂度如果是O(n2)则不得分。

一棵排序二叉树,令 f=(最大值+最小值)/2,设计一个算法,找出距离f值最近、大于f值的结点。复杂度如果是O(n2)则不得分。

一个整数数列,元素取值可能是1~N(N是一个较大的正整数)中的任意一个数,相同数值不会重复出现。设计一个算法,找出数列中符合条件的数对的个数,满足数对中两数的和等于N+1。复杂度最好是O(n),如果是O(n2)则不得分。

Google

正整数序列Q中的每个元素都至少能被正整数a和b中的一个整除,现给定a和b,需要计算出Q中的前几项,例如,当a=3,b=5,N=6时,序列为3,5,6,9,10,12 (1)、设计一个函数void generate(int a,int b,int N ,int * Q)计算Q的前几项(2)、设计测试数据来验证函数程序在各种输入下的正确性。

有一个由大小写组成的字符串,现在需要对他进行修改,将其中的.所有小写字母排在答谢字母的前面(大写或小写字母之间不要求保持原来次序),如有可能尽量选择时间和空间效率高的算法 c语言函数原型void proc(char *str) 也可以采用你自己熟悉的语言。

如何随机选取1000个关键字,给定一个数据流,其中包含无穷尽的搜索关键字(比如,人们在谷歌搜索时不断输入的关键字)。如何才能从这个无穷尽的流中随机的选取1000个关键字?

判断一个自然数是否是某个数的平方。说明:当然不能使用开方运算。

给定能随机生成整数1到5的函数,写出能随机生成整数1到7的函数。

1024! 末尾有多少个0?

有5个海盗,按照等级从5到1排列,最大的海盗有权提议他们如何分享100枚金币。但其他人要对此表决,如果多数反对,那他就会被杀死。他应该提出怎样的方案,既让自己拿到尽可能多的金币又不会被杀死?(提示:有一个海盗能拿到98%的金币)

23、Google华南地区笔试题。给定一个集合A=[0,1,3,8](该集合中的元素都是在0,9之间的数字,但未必全部包含),指定任意一个正整数K,请用A中的元素组成一个大于K的最小正整数。比如,A=[1,0] K=21 那么输出结构应该为100。

百度

用C语言实现一个revert函数,它的功能是将输入的字符串在原串上倒序后返回。

用C语言实现函数void * memmove(void *dest, const void *src, size_t n)。memmove 函数的功能是拷贝src所指的内存内容前n个字节到dest所指的地址上。分析:由于可以把任何类型的指针赋给void类型的指针,这个函数主要是实现各种数据类型的拷贝。

有一根27厘米的细木杆,在第3厘米、7厘米、11厘米、17厘米、23厘米这五个位置上各有一只蚂蚁。木杆很细,不能同时通过一只蚂蚁。开始时,蚂蚁的头朝左还是朝右是任意的,它们只会朝前走或调头,但不会后退。当任意两只蚂蚁碰头时,两只蚂蚁会同时调头朝反方向走。假设蚂蚁们每秒钟可以走一厘米的距离。编写程序,求所有蚂蚁都离开木杆的最小时间和最大时间。

腾讯

请定义一个宏,比较两个数a、b的大小,不能使用大于、小于、if语句

两个数相乘,小数点后位数没有限制,请写一个高精度算法

有A、B、C、D四个人,要在夜里过一座桥。他们通过这座桥分别需要耗时1、2、5、10分钟,只有一支手电,并且同时最多只能两个人一起过桥。请问,如何安排,能够在17分钟内这四个人都过桥?

有12个小球,外形相同,其中一个小球的质量与其他11个不同,给一个天平,问如何用3次把这个小球找出来,并且求出这个小球是比其他的轻还是重

在一个文件中有 10G 个整数,乱序排列,要求找出中位数。内存限制为 2G。只写出思路即可。

一个文件中有40亿个整数,每个整数为四个字节,内存为1GB,写出一个算法:求出这个文件里的整数里不包含的一个整数。

腾讯服务器每秒有2w个QQ号同时上线,找出5min内重新登入的qq号并打印出来。

雅虎

编程实现:把十进制数(long型)分别以二进制和十六进制形式输出,不能使用printf系列

编程实现:找出两个字符串中最大公共子字符串,如“abccade”,“dgcadde”的最大子串为“cad”

有双向循环链表结点定义为:1struct node2{3  int data;4  struct node *front,*next;5};有两个双向循环链表A,B,知道其头指针为:pHeadA,pHeadB,请写一函数将两链表中data值相同的结点删除。

网易

两个圆相交,交点是A1,A2。现在过A1点做一直线与两个圆分别相交另外一点B1,B2。B1B2可以绕着A1点旋转。问在什么情况下,B1B2最长

Smith夫妇召开宴会,并邀请其他4对夫妇参加宴会。在宴会上,他们彼此握手,并且满足没有一个人同自己握手,没有两个人握手一次以上,并且夫妻之间不握手。然后Mr. Smith问其它客人握手的次数,每个人的答案是不一样的。求Mrs Smith握手的次数

篇2:恒生电子笔试题

恒生电子笔试题

以下纯属参考,未必这么考

请大家一定要注意 oracle 数据库方面的知识

现在用人单位在 java 和 c的笔试上基本上难不倒我们但在一些对于数据库有比较高要求的软件企业,比如做金融很多时候,我们会有 oracle 数据库方面受挫,从而造成在薪资水平上受压制,甚至失去这个机会,

1.对于一个数据库表,可以有 1 个主键和 多 个外键。

2.为了防止一个用户的工作不适当的影响另一个用户,应该采取(c)

a完整控制 b,安全性控制 c,并发控制 d,访问控制

3.关系数据库中,实现实体之间的联系是通过表与表之间的(d)

a,公共索引 b,公共存储 c,公共元组 d,公共属性

4,sql 语言集数据查询,数据操纵,数据定义,数据控制功能与一体,充分体现了关系数据库语言的特点和优点。

5,触发器可以在 插入,删除或修改特定表中的数据 中的一种或几种操作发生时自动执行。

6,请列数据库编程中连接 sql server 数据库的三中不同技术:dsn,dsn-less,oledb

7,请举出实体间具有一对一,一对多,多对多联系的例子。

8,简要说明事务的原子性?事务的原子性指的是,事务中包含的程序作为数据库的逻辑工作单位,它所做的对数据修改操作要么全部执行,要么完全不执行。这种特性称为原子性。

事务的原子性要求,如果把一个事务可看作是一个程序,它要么完整的被执行,要么完全不执行。就是说事务的操纵序列或者完全应用到数据库或者完全不影响数据库。这种特性称为原子性。

假如用户在一个事务内完成了对数据库的更新,这时所有的更新对外部世界必须是可见的,或者完全没有更新。前者称事务已提交,后者称事务撤消(或流产) 。dbms必须确保由成功提交的.事务完成的所有操纵在数据库内有完全的反映,而失败的事务对数据库完全没有影响。

9,简要说明为什么存储过程执行速度比普通的 sql 更快而且减少网络流量?谁都知道存储过程是预编译的存储过程其实就是能完成一定操作的一组 sql 语句,只不过这组语句是放在数据库中的这里我们只谈 sql server。如果我们通过创建存储过程以及在 asp 中调用存储过程,就可以避免将 sql 语句同 asp 代码混杂在一起。这样做的好处至少有三个:

第一、大大提高效率。存储过程本身的执行速度非常快,而且,调用存储过程可以大大减少同数据库的交互次数。

第二、提高安全性。假如将 sql 语句混合在 asp 代码中,一旦代码失密,同时也就意味着库结构失密。

第三、有利于 sql 语句的重用。

应用题:0s

studentbaa

学号 姓名 性别 年龄 所在系

sno sname ssex sage sdept

courseb

课程编号 课程名 学分

cno cname ccredit

学号 课程编号 成绩

sno cno gradepr

1,查询所有学过课程“数据库”的学生姓名,并且按年龄从大到小排序select stu.sname stu.sage from student stucoursesc where stu.snosc.snoand sc.cnocourse.cno and course.cname‘数据库‘

2,查询平均分数为 85 以上的学生名单和平均得分select stu.sname from student stusc where stu.snosc.sno and avgsc.grade85

3,新增加一门 2 个学分的课程,编原理 课程编号为 1005 (char 型)insert into coursecnocnameccredit values‘1005’”编译原理” ,2fapos

4,在选修关系 sc 表中,建立序号和课程编号的唯一索引,

5,学生信息中,要增加身份证号码字段 类型为 char 长度 18 非空alter table student addcredit_id char18 not null;

6,删除 sc 表中学号已经不存在的记录delete from sc where sno not inselect maxrowid from sc group by snocnograde

7,写出 sql 语句得到下列结果

所在系 男生人数 女生人数 总人数

select sdeptcount from student group by ssex

所在系 15《年龄〈18 18〈年龄〈20 的人数 其他年龄的人数 总人数

第一题是综合题,

1、毕业后想从事什么样的工作,为什么?

2、你父母对你的教育上,哪些造就了你现在的个性特点?

3、你的技术专长是什么?

4、你的学习成绩怎样?拿过什么奖励金?

第二题是不定项选择题

1、给你一串出栈序列,判断栈至少长多少

2、给出先序中序判断后续

3、字符数组赋值问题,包括 for 循环和 memset 和另一个 dzero(好像是这个函数)

4、linux/Unix 中允许读写但不允许执行的命令(666 跟 777)

5、关于静态变量说法正确的是哪些

6、关于数据库中索引作用的题

7、进程的并发会影响数据一致性的(读脏数据等)

第三题填空题

1、操作系统进程高级通信有哪些方式

2、给出一段代码,问这段代码有什么问题(指针为赋初值)

3、给出 IP,求子网掩码和可分配的主机数

4、数据库中事务的四个特点(原子性、一致性、独立性/隔离性、持久性)

第四题数据库操作题

大致就是给出三个表,要求写 SQL 语句,包括视图建立,增删改查,SQL 函数应用等(一共 25 分,好多)

第五题用 C 或 JAVA 写一个五子棋程序

要求写一个函数,当一颗白棋落下的时候,判断白方是否五连珠,棋盘是 1313 大小,用数组 A 表示,0 表示空,1 表示白棋,2 表示黑棋

然后就是一道 20 分值的数据库的题目了,一个表里有三个字段,语言,数学,英语,三门课程的成绩分别为 70、80、58,要你写语句输出三门课程的成绩(不过成绩是要用优秀、及格、不及格来显示的)大于 80 分为优秀、60 分以上为及格、60 分以下为不及格。要求你写出设计的思路,然后再写语句。

最后一部分也是 20 分值的题,有两道题,任选一道,第一道是看程序填空的,考的是递归算法;第二道是用 JAVA 写的,实现折半查找。

篇3:电子商务英语笔试题

电子商务英语笔试题

(一) 词汇和语法(本大题共20小题,每小题1分,共20分)根据句子的意思选择一个正确的答案,答案标在答题纸上。

1.Flight nineteen from New York and Washington is now arriving at _____.

A. the two gate

B. gate two

C. the gate two

D. second gate

2.Since 1971 there have been two _____ in this city.

A. woman mayors

B. woman mayor

C. women mayor

D. women mayors

3.It rains _____ in Shanghai _____ in Beijing.

A. as often; than

B. more often; than

C. as oftener; as

D. much often; as

4.It _____ for two days and the field were all under water.

A. rained

B. had been raining

C. was raining

D. would have rained

5.A new type of computer is going to _____ next year.

A. turn out

B. being turned out

C. have turned out

D. turned out

6.Having the highest marks in his class,_____.

A. the college offered him a scholarship

B. a scholarship was offered him by the college

C. he was offered a scholarship by the college

D. a college scholarship was offered to him

7.He _____ in London by eleven o'clock, but he started too late.

A. should be

B. must have been

C. ought to have been

D. might have been

8.If you _____ that late movie last night, you wouldn't be sleepy now.

A. hadn't watched

B. didn't watch

C. haven't watched

D. wouldn't have watched

9.It is because English is useful _____.

A. why we study it hard

B. which we study hard

C. what we study hard

D .that we study it hard

10.We do not believe their nice words _____ intimidated by their bluster.

A. so aren't we

B. neither we are

C. we are not

D. nor are we

11.There are _____ benefits in the new system.

A. concise

B. precise

C. tangible

D. metal

12.The time has come for the company to _____ after years of rapid expansion.

A. consist

B. consider

C. consolidate

D. combine

13.It is important for university to keep _____ with the changes in science and technology.

A. step

B. stage

C. space

D. pace

14.Critics _____ the writer with a lack of originality.

A. criticized

B. charged

C. condemned

D. scolded

15.They have _____ themselves as dedicated social workers.

A. distinguished

B. seen

C. defined

D. differed

16.The plane is _____ to take off at 4.

A. enlisted

B. enrolled

C. prompted

D. scheduled

17.People will not believe a person who always _____.

A. magnifies

B. enlarges

C. broadens

D. exaggerates

18.You should sign a contract to make your job situation _____.

A. normal

B. common

C. regular

D. usual

19.All citizens in this nation are _____ to the law.

A. subject

B. object

C. exposed

D. dependent

20.Let's fix a _____ date for the next meeting.

A. infinite

B. plain

C. distinct

D. definite

(二)完型填空(本大题共10小题,每小题1分,共10分)从选择项中选择一个最适合短文的选项。答案标在答题纸上。

Human beings act in a different way from that of animals just because they can speak while animals cannot.___21___ the cleverest animals cannot do things which to us seem very ___22___ and which small children, as soon as they learn to talk, would be able to do.

A German scientist, who performed experiments for many years with big apes, found that his apes could ___23___ his sticks as stools to pull down bananas which they could not reach. But they only used the stick to get a banana when both the banana and the stick were ___24___ view at the same time. If the banana was in front of them and the stick was behind them, they could not use the stick. They could not keep the banana ___25___ enough in mind to look around and then pick up the stick and use it.

The ___26___ for this is clear. We have words for banana and stick which help us to think about these things when they are not in ___27___.Even a small child knowing the words “banana” and “stick” has an idea of their relationship and is able to think “stick” together with “banana” and to remember this long enough to pick the stick ___28___ behind and use it on the banana.

Unable to speak, animals cannot keep their knowledge of things ___29___ long. That's why they often interrupt one line of action to do something else and later forget it completely. Human beings, on the other hand, use ___30___ and are able to do one thing continuously.

21.A.If B. Even C. Though D. When

22.A.honest B. foolish C. simple D. evident

23.A.take B. hold C. regard D. use

24.A.in B. beyond C. for D. with

25.A.close B. alive C. long D. complete

26.A.reason B. answer C. truth D. thought

27.A.mind B. thought C. sight D. brain

28.A.in B. at C. around D. from

29.A.before B. for C. after D. since

30.A.knowledge B. language C. mind D. memory

(三)阅读理解(本大题共10小题,每小题2分,共20分)

阅读下面的短文,从A、B、C、D四个选择项中选出一个最佳答案填空,

答案标在答题纸上。

Passage 1

There is, perhaps, no other sport in the world quite so exciting as skiing. For those watching, it is a top beauty nothing else can match. For skiers, it is a wonderful personal experience, and a thrilling test of mind, muscle and nerves.

More and more Americans are discovering this thrill for themselves. Not long ago, skiing had no part in the American sport scene. If it were thought of at all, it was purely as a European sport. Then came the 1932 Winter Olympics at Lake Placid, New York. Americans got their first good look at skiing and made for the hills. Today ski trains make regular runs from our cities to the great, white outdoors.

In addition to joy and cheer and excitement, skiing offers something more. It is a sport less expensive and for the young, the act of skiing is often mastered in a very short time.

The special thrill of skiing is expressed by Buddy Werner.“It's all up to you,”he says.“No teammate can help. You're alone. It's against the snow, yourself. You're a brave fighter.”

31.Americans first understood and began skiing ______.

A. about 50 years

B. about 60 years ago

C. not long ago

D. in 1932

32.Besides giving us amusement and pleasure, skiing has some more virtues:______.

A. a sport cheaper and easier to learn

B. a sport fit for both men and women

C. a sport outside, though expensive

D. a sport both on snow and on water

33.According to Buddy Werner, the special thrill of skiing lies in the fact that ______.

A. nobody can help

B. you are skiing with teammates

C. you're skiing on the mountains

D. it can show you are brave

篇4:凹凸电子笔试题

1:一个函数如下

char *f

{

char a[5];

char b[5];

a[0]='a';

a[1]='b';

a[2]='c';

a[3]='d';

a[4]='e';

strcpy(b,a);

return b;

}

请问:一:该函数中用a作为一个字符串是否存在问题?

二、该函数返回的b是否可用,为什么?

2:函数如下

void f()

{

char *a;

a=(char*)malloc(5);

strcpy(a,“abc”);

a=“cde”;

free(a);

}

请问:该函数存在哪些问题?

篇5:电子软件笔试题

1. Select ONE of the following projects to discuss:

a. Signal Filtering: You are given a sampled realtime waveform consisting

of a sensor reading mixed with highly periodic impulses and high frequency noi

se.The desired output is the realtime filtered sensor signal with the impulses

and noise removed, and a readout of the impulse period. The FFT may not be us

ed.

b. Interrupt Processing.A headware register consisting of eight independen

t edge triggered latches is used to record external asynchronous interrupt req

uests. When any of the request bits are latched, a software interrupt is gener

ated. The software may read the latch to see which interrupt(s) occurred. Writ

ing a one to any latch bit will clear the latch. How does that software assure

that no interrupt request is ever missed?

c. User Interface: a prototype MP3 player interface consisting of a playli

st display and a few control buttons is given to you. How would you make the i

nterface “skinnable”,with user selected graphics, options, and control butto

n placement?

Each project description is incomplete. What questions would you ask to co

mpletely specify the project? What development tools would you prefer to use?

What algorithm /data structures/design would you use?

2. What program(s) have you coded for you own enjoyment (not part of a sch

ool project,not for pay). What type of software project would you most enjoy w

orking on?

3. Have you participated in a team programming project? What is the hardes

t part of programming as a team, as opposed to programming alone?

篇6:往年威盛电子笔试题

往年威盛电子笔试题

1.在第一个声明处编译出了奇怪的.错误,为什么?

#include

#include “myfun1.h”

#include “myfun2.h”

int myInt1;

int myInt2;

2.三组程序,找出你认为的错误,

(1)a.c long temp[255];

b.c extern *temp;

(2)a.c long temp[255];

b.c extern temp[256];

(3)a.c long temp[255];

b.c extern temp[];

3.printf(“0x%x”, (&0)[1]); 请问打印了什么?

4.汇编,用ax,bx,cx,dx,求1000×1000/30(四舍五入),结果放在ax中,

5.编最优化Bubble(int *pIntArray,int L),要求:交换元素不能用临时变量,如果有序需要最优。

6.用任意一种编程语言写n!的算法。

篇7:电子公司笔试题1

电子公司笔试题1

西门子笔试题

1.解释什么是串行通讯,与并行通讯有什么区别,以太网、USB、红外线分别属于何者?

串行通讯的速率是9.6Kpbs代表什么含义?

2.西门子的模拟输入模块能够将传感器的4-20mA电流信号对应线性转化为0-27648的数值,如果在程序中读到一个十六进制的数1FFF,那么传感器的.电流是多少?

3.客户的控制系统使用数字量输出模块,要在输出通道上接一个电流1.2mA的电磁阀,客户认为当输出通道接通再断开后,电磁阀的内部线圈会存储一定的电能,他想通过外部的电路完全释放这部分电能,请问如何设计外部电路?

4.二进制数10000111与10110110进行XOR的运算结果是多少?十六进制数5E与C6之间进行OR的结果是多少?

5.试列举电机调速方法,比较这几种方法。

6.请试分析RS232C与 RS485之间的区别与特征

7.针对连续自动控制系统的常用分析方法有哪些?什么是PID算法,电解个参数分别起到什么什么功能?

8.阅读下面的c代码,写出答案

main

{ int f;

int a[10]={1,2,3,4,5,6,7,8,9,0};

int *p;

for (f=1;f<5;f++)

a[f]++;

printf(“%d/r/n”,a[0]);

printf(“%d/r/n”,a[1]);

printf(“%d/r/n”,a[4]);

printf(“%d/r/n”,a[5]);

printf(“%d/r/n”,a[6]);

}

篇8:凹凸电子软件笔试题

1. Select ONE of the following projects to discuss:

a. Signal Filtering: You are given a sampled real time waveform consisting of a sensor reading mixed with highly periodic impulses and high frequency noise. The desired output is the real time filtered sensor signal with the impulses and noise removed, and a readout of the impulse period. The FFT may not be used.

b. Interrupt Processing. A headware register consisting of eight independent edge triggered latches is used to record external asynchronous interrupt requests. When any of the request bits are latched, a software interrupt is generated. The software may read the latch to see which interrupt(s) occurred. Writing a one to any latch bit will clear the latch. How does that software assure that no interrupt request is ever missed?

c. User Interface: a prototype MP3 player interface consisting of a playlist display and a few control buttons is given to you. How would you make the interface “skinnable”, with user selected graphics, options, and control button placement?

Each project description is incomplete. What questions would you ask to completely specify the project? What development tools would you prefer to use?

What algorithm /data structures/design would you use?

2. What program(s) have you coded for you own enjoyment (not part of a school project, not for pay). What type of software project would you most enjoy working on?

3. Have you participated in a team programming project? What is the hardest part of programming as a team, as opposed to programming alone?

篇9:立信从兴电子笔试题

立信从兴电子笔试题

神州数码-开发工程师笔试题目:

1)笔试:综合能力测试(公务员题目)+专业测试(J2EE/C++/数据库) 感觉专业测试很easy,但是考的非常全,涉及范围:struts, spring ,eclipse, html, ejb等等;

2)面试:没有问技术问题

1面:HR面,半结构化测试,主要是性格测试

2面:业务面,没有问任何技术问题,就是职业规划和情景分析.

联想面试笔试题

“高速铁路时代”已经到来

亚马逊收购卓越引发电子商务市场冷思考

机械笔试题

电脑策划书

辑考题笔试题

笔试题建筑业

学术节活动策划书

笔试题IP协议

医学心理学笔试题

世界知名电子企业笔试题
《世界知名电子企业笔试题.doc》
将本文的Word文档下载到电脑,方便收藏和打印
推荐度:
点击下载文档

【世界知名电子企业笔试题(通用9篇)】相关文章:

摩托笔试题2022-12-20

笔试题2023-06-27

复旦的笔试题2023-10-03

笔试题交集2023-02-14

电子类的简历2022-05-08

10月自学考试宪法学简答题练习及答案2022-07-20

学四史知识竞赛活动方案2023-10-06

面试题你的座右铭是什么2023-10-05

学校招生计划方案2023-07-07

服装设计助理笔试题2023-02-06