第一范文网 - 专业文章范例文档资料分享平台

IBM之IPAT

来源:用户分享 时间:2025/8/5 5:44:22 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

Ans. Is a data structure that defines all specifications of a file like the file size,

number of lines to a file, permissions etc.

17. The UNIX shell ....

a) does not come with the rest of the system

b) forms the interface between the user and the kernal c) does not give any scope for programming

d) deos not allow calling one program from with in another e) all of the above

Ans. (b)

18. enum number { a=-1, b= 4,c,d,e} What is the value of e ? (a) 7 (b) 4 (c) 5 (d) 15 (e) 3

19. The very first process created by the kernal that runs till the kernal process is halts is

a) init b) getty

c) both (a) and (b) d) none of these

Ans. (a)

20. Output of the following program is

main() {int i=0;

for(i=0;i<20;i++) {switch(i) case 0:i+=5;

case 1:i+=2; case 5:i+=5; default i+=4; break;}

printf(\} }

a) 0,5,9,13,17 b) 5,9,13,17 c) 12,17,22 d) 16,21

e) Syntax error

Ans. (d)

21. What is the ouptut in the following program

main()

{char c=-64; int i=-32

unsigned int u =-16; if(c>i)

{printf(\if(c

printf(\else

printf(\} else

printf(\if(i

printf(\else

printf(\}

a) Pass1,Pass2 b) Pass1,Fail2 c) Fail1,Pass2 d) Fail1,Fail2 e) None of these

Ans. (c)

22. In the process table entry for the kernel process, the process id value is

(a) 0 (b) 1 (c) 2 (d) 255

(e) it does not have a process table entry

Ans. (a)

23. Which of the following API is used to hide a window

a) ShowWindow b) EnableWindow c) MoveWindow

d) SetWindowPlacement e) None of the above

Ans. (a)

24. What will the following program do?

void main() { int i;

char a[]=\char *p=\char *Temp; Temp=a;

a=malloc(strlen(p) + 1);

strcpy(a,p); //Line number:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp);

printf(\free(p); free(a);

} //Line number 15//

a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1

Ans. (b)

25. In the following code segment what will be the result of the function,

value of x , value of y {unsigned int x=-1; int y; y = ~0; if(x == y)

printf(\else

printf(\}

a) same, MAXINT, -1

b) not same, MAXINT, -MAXINT c) same , MAXUNIT, -1

d) same, MAXUNIT, MAXUNIT e) not same, MAXINT, MAXUNIT

Ans. (a)

26. PATH = /bin : /usr : /yourhome

The file /bin/calender has the following line in it

cal 10 1997

The file /yourhome/calender has the following line in it

cal 5 1997

If the current directory is /yourhome and calender is executed

a) The calendar for May 1997 will be printed on screen b) The calendar for Oct 1997 will be printed on screen

c) The calendar for the current month( whatever it is) will be printed

搜索更多关于: IBM之IPAT 的文档
IBM之IPAT.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c4cjqr8ins237lyd0yell_6.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top