当前位置:文档之家› 锐捷笔试题集

锐捷笔试题集

试题内容如下:(1)以下程序片断运行后,输出的结果是:printf(“%x”,012345678);(2)以下程序片断运行后,输出的结果是:char str*+=”h\t\”\\/\012\00034”;printf(“%d”, strlen(str));(3)以下程序片断运行后,输出的结果是:int m=4,n=5;float a=(float)m/n;float b=m/n;printf(“%.2f, %.2f”, a, b);(4)以下程序片断运行后,输出的结果是:int x=3, y=(5, 4);printf(“%d”, x*=y+1);(5)以下程序片断运行后,输出的结果是:printf(“%d”, (1<<2+3));(6)使用typedef定义一个包含10个整数指针的数组类型a: typedef;(7)以下程序片断运行后,输出的结果是:int a[3][3], (*b)[4];b=a;printf(“%d”, (&a*1+*1+-&b[1][1]));(8)以下程序片断运行后,输出的结果是:unsigned char a[16][16], *ptr;intm;ptr=( unsigned char *) a;for(m=0;m<sizeof(a);m++, ptr++) {*ptr= m;}printf(“%x”, a*1+*10+);(9)以下程序片断运行后,输出的结果是:int a=1, b=10;do {a++;b -=a;b --;} while(b>0);printf(“%d, %d”, a, b);(10)unsigned signed char 所能表示最大数由UCHAR_MAX定义,则以下程序片断运行后,输出的结果是:printf(“%d, %x”, UCHAR_MAX, UCHAR_MAX)(11)以下程序片断运行后,输出的结果是:char *str = “hello”;int * p= (int*)str;printf(“%d, %d”, sizeof(str*0+), sizeof(*p));(12)宏定义:将整型变量a的第n位清零,其它位不变。

# define clear_bit(a, n)(13)以下程序片断运行后,输出的结果是:int m=0,n=0;if(m++ >2 || m++ <10)n++;elsen--;printf(“%d, %d”, m, n);(14)当引用库函数memcpy()时,需要包含的头文件是:(15)运行C语言编写的程序dir / B / tmp时,dir的C程序int main(intargc, char*argc[])argc的值是。

(16)补充以下函数:/ * atoi: convert s to integer*/int atoi(char s[]){inti, n;n = 0;for(i=0; s>= ‘0’ && s <= ‘9’; ++i)n=10* n +;return n;}(17~20)根据函数说明完成以下函数:/ ** DESCRIPTION* The strchr() function locates the first occurrence of* c(converted to a char) in the string pointed to s.* The terminating null character is considered part of the string;* therefore if c is ‘\0’, the functions locate the terminating* ‘\0’.** RETURN VALUES*The functions strchr() return a pointer to the located*character, or NULL if the character does not appear in*the string.char*(strchr)(const char *s, int c)const charch = (char) c;const char*sc;for (sc = 0; ; ++s){if (*s == ch)sc = ch;if (17)return ((char *) sc);}}/ ** DESCRIPTION*The strstr() function locates the first occurrence of the *null-terminated string s2 in the null-terminated string s.** RETURN VALUES*if s2 is an empty string, s1 is returned; if s2 occurs nowhere *in s1, NULL is returned; otherwise a pointer to the first *character of the first occurrence of s2 is returned.*/char *(strstr)(constchar *s1, constchar*s2){18)return((char * ) s1);for( ; (s1 = strchr(s1, *s2)) != 0;19){constchar*sc1, *sc2;for (sc1 = s1, sc2 = s2; ; )if (*++sc2 == ‘\0’)return((char*) s1);else if (*++sc1 != *sc2)20;}return(0);}—END—发信人: liangzi (copy), 信区: Job_Discuss标题: 锐捷笔试题(百度到的)发信站: 武汉白云黄鹤站 (2007年10月24日21:09:46 星期三) 写一个宏让 x的第n位取反, 32位的系统,n<=31#define bit_reverse(x,n) x^1>>n;1、简述LINUX有哪几个运行级,分别代表什么?2、写出下列地址所处的网段地址,广播地址,以及有效地址的主机地址范围;170.16.10.5\25 10.10.10.5\303、尽可能多的列举内部网关协议4、简述以太网发展各个阶段的带宽标准5、简述目前常见数据库有哪些6、一天,你的客户在电话中向你求助,他的主机在测试与网关的连通性时,不能正常的PING通网关,请按照OSI七层模型由一到七的顺序替客户分析可能出现的所有情况,7、列举总线性能指标并做简要说明8、简述总线标准 ISA EISA PCI 三者的区别9.vlan是什么?他的作用?10.总线有那些性能参数?简述之11.一个客户ping不通网关,试用OSI七层模型分别简述每一层可能导致的故障原因12.RAID有那些级别,简述一行业背景1,请介绍下CERNET网络建设情况,网络提供的服务有哪些?2.高校一般有哪些应用?一般有几台服务器?应用的热点是什么?3.金融行业一般有哪些应用?网络拓扑是怎么样的?金融行业的应用热点是什么?4..IT业最近的技术热点是什么? 行业趋势是什么?厂商在里面起了什么作用.厂商该怎么办?5.请你尽可能多的从高端到低端列出你说接触过的cisco 华为港湾锐睫的路由器.并说明其技术特点.6.请问售前工程师在一个项目中起的作用.二技术知识1.请说出以太网的发展历程.并说明不同时段相关的IEEE的标准.2.请画出以太网数据包。

IP包。

TCP/UDP 包的结构.3.请尽可能多的列出单播路由协议.并用一两句话描述它的特点.4.请尽可能的多列出组播路由协议.并用一两句话描述它的特点.5.防火墙技术有多少种.你用过的有哪些?它的特点是什么?6.什么是IDS. IPS ? 你用过的IDS设备有哪些?7.三层交换机和路由器的区别?为什么不能用三层交换机代替路由器?9.请说出你用过的操作系统.并说出他们的特点.10.请说出你所用过的数据库.并说出他们的特点.11.请描述下SDH技术.12.请设计一条SQL 语句. 从一个表中查找字段为特定的数据.三阅读理解On the Internet, a packet monkey is someone who intentionally inundates a Web site or network with data packets, resulting in a denial-of-service situation. Packet monkeys typically use tools created and made available on the Internet by hackers. A packet monkey, unlike a script kiddy, leaves no clues as to who is making the exploit, making the identity of a packet monkey more difficult to trace. In addition, a denial-of-service attack can be launched on a wider scale than attacks performed by script kiddies, making them more difficult to investigate. Hackers look down on packet monkeys and often describe them as “bottom feeders.”Because a packet monkey uses tools created by others, the packet monkey has little understanding of the harm that may be caused. Typically, packet monkey exploits are random and without any purpose other than the thrill of making an effect.在说说今年锐捷的笔试题:第一部分:基础知识考到了操作系统,linux,window,总线,数据结构,编码,局域网,广域网相关技术,这部分题考的范围很广,都考的不深第二部分:填空linux,程序的算法,SQL基本知道,这部分考的很简单第三部分:问答1.linux系统有多少个级别,简述?2.vlan是什么?他的作用?3.总线有那些性能参数?简述之4.一个客户ping不通网关,试用OSI七层模型分别简述每一层可能导致的故障原因5.RAID有那些级别,简述第四部分:英语一篇英语阅读,6级水平,10个选项。

相关主题