Birla Soft
6. In the following question answer A, B, C, D depending on when the errors are detected? Array overbound A. if no error is detected B. if semantic and syntactic checking C. if during Code generation & Symbol allocation D. run time
7. In the following question answer A, B, C, D depending on when the errors are detected? Undeclared identifier A. if no error is detected B. if semantic and syntactic checking C. if during Code generation & Symbol allocation D. run time
8. In the following question answer A, B, C, D depending on when the errors are detected? Stack underflow A. if no error is detected B. if semantic and syntactic checking C. if during Code generation & Symbol allocation D. run time
9. In the following question answer A, B, C, D depending on when the errors are detected? Accessing an illegal memory location A. if no error is detected B. if semantic and syntactic checking C. if during Code generation & Symbol allocation D. run time
10. How many page faults will occur for below sequence of pages when LRU page replacement algorithm is used (The memory can only have 3pages): 1,2,3,4,2,1,5,2,4 (something like that)
11. If a CPU has 20 address lines but MMU does not use two of them. OS occupies 20K. No virtual memory is supported. What is the maximum memory available for a user program?
12. For a binary tree with n nodes, how many nodes are there which has got both a parent and a child?
13. Understand the fundamental of incrementing a variable using val++ and ++val. Some programs are given for error correction.
14. Which of the following can be zero? A. swap space B. physical memory C. virtual memory
15. What is a must for multitasking? A. Process preemption B. Paging C. Virtual memory D. None of the above
16. A question on call by value, call by name, call by reference. f(x,y,z) { y := y+1; z := z+x; } main() { int a,b; a := 2 b := 2; f(a+b,a,a); print a; } What is the value of a printed for three different calls in main?
17. Using the following instructions and two registers, A&B. find out A XOR B and put the result in A PUSHDefect Logged -> Defect Debugged -> Defect Closed -> Defect Rechecked b) Defect Found -> Defect Debugged -> Defect Reported -> Defect Rechecked -> Defect Closedc) Defect Debugged -> Defect Found -> Defect Closed -> Defect Reported -> Defect Recheckedd) Defect Found -> Defect Logged -> Defect Debugged -> Defect Rechecked -> Defect Closed
2. Which group does Winrunner ,Load Runner ,SQA Suite fall under ?a) Databasesb) Automated Test Toolsc) Operating Systemsd) Rapid Application Development Tool
3. i = 0; j = 0; for(j=1;j<10;j++) i="i+1;" int =" 0);">Referring to the sample code above ,which of the following could you use to make the standars I/O Stream classes accessible without requiring the scope resolution operator ?
a) using namespace std::iostreamb) using namespace std;c) using namespace iostream ;d) using iostream;
8. Which one of the following statements allocates enough space to hold an array of 10 integers that are initialized to 0 ?
a) int *ptr = (int *) calloc(10,sizeof(int));b) int *ptr = (int *) alloc( 10*sizeof(int));c) int *ptr = (int *) malloc( 10*sizeof(int));d) int *ptr = (int *)calloc(10*sizeof(int));9. What function will read a specified number of elements from a file ?
a) fread()b) readfile()c) fileread()d) gets()
10. What is the largest value an integer can hold in a Standard C compiler ?
a) 32767b) 65536c) 2147483647d) INT_MAX
11. With every use of memory allocation function should be used to release allocated memory which is no longer needed ?
a) dropmem()b) dealloc()c) release()d) free()
12. int a=1; int ab=4; int main() { int b=3,a=2; printf("%i*/%i*/%*/i",a,b,ab); }
13 kernal execute the first process when system is start--- ans :- init();
14 process id of kernal (a) 1 (b) 0 (c) 2 (d) none
15. Which one of the following represents a correct and safe declaration of NULL ?
a) typedef((void *)0) NULL;b) typedef NULL(char *)0;c) #define NULL((void *)0)d) #define NULL((char*)0)
16. Which one of the following statements allocates enough space to hold an array of 10 integers that are initialized to 0 ?
a) int *ptr = (int *) calloc(10,sizeof(int));b) int *ptr = (int *) alloc( 10*sizeof(int));c) int *ptr = (int *) malloc( 10*sizeof(int));d) int *ptr = (int *)calloc(10*sizeof(int));
======================GD TOPICS=====================
1- indian cricket team is consistent or not;2- IT shoud be necessary in rural area or not;3- sourav ganguli should be caption or not;4- advantage & disadvantages of Outsoursing;5- india & pakistan matches are pation (josh) or not;
7. In the following question answer A, B, C, D depending on when the errors are detected? Undeclared identifier A. if no error is detected B. if semantic and syntactic checking C. if during Code generation & Symbol allocation D. run time
8. In the following question answer A, B, C, D depending on when the errors are detected? Stack underflow A. if no error is detected B. if semantic and syntactic checking C. if during Code generation & Symbol allocation D. run time
9. In the following question answer A, B, C, D depending on when the errors are detected? Accessing an illegal memory location A. if no error is detected B. if semantic and syntactic checking C. if during Code generation & Symbol allocation D. run time
10. How many page faults will occur for below sequence of pages when LRU page replacement algorithm is used (The memory can only have 3pages): 1,2,3,4,2,1,5,2,4 (something like that)
11. If a CPU has 20 address lines but MMU does not use two of them. OS occupies 20K. No virtual memory is supported. What is the maximum memory available for a user program?
12. For a binary tree with n nodes, how many nodes are there which has got both a parent and a child?
13. Understand the fundamental of incrementing a variable using val++ and ++val. Some programs are given for error correction.
14. Which of the following can be zero? A. swap space B. physical memory C. virtual memory
15. What is a must for multitasking? A. Process preemption B. Paging C. Virtual memory D. None of the above
16. A question on call by value, call by name, call by reference. f(x,y,z) { y := y+1; z := z+x; } main() { int a,b; a := 2 b := 2; f(a+b,a,a); print a; } What is the value of a printed for three different calls in main?
17. Using the following instructions and two registers, A&B. find out A XOR B and put the result in A PUSH
2. Which group does Winrunner ,Load Runner ,SQA Suite fall under ?a) Databasesb) Automated Test Toolsc) Operating Systemsd) Rapid Application Development Tool
3. i = 0; j = 0; for(j=1;j<10;j++) i="i+1;" int =" 0);">Referring to the sample code above ,which of the following could you use to make the standars I/O Stream classes accessible without requiring the scope resolution operator ?
a) using namespace std::iostreamb) using namespace std;c) using namespace iostream ;d) using iostream;
8. Which one of the following statements allocates enough space to hold an array of 10 integers that are initialized to 0 ?
a) int *ptr = (int *) calloc(10,sizeof(int));b) int *ptr = (int *) alloc( 10*sizeof(int));c) int *ptr = (int *) malloc( 10*sizeof(int));d) int *ptr = (int *)calloc(10*sizeof(int));9. What function will read a specified number of elements from a file ?
a) fread()b) readfile()c) fileread()d) gets()
10. What is the largest value an integer can hold in a Standard C compiler ?
a) 32767b) 65536c) 2147483647d) INT_MAX
11. With every use of memory allocation function should be used to release allocated memory which is no longer needed ?
a) dropmem()b) dealloc()c) release()d) free()
12. int a=1; int ab=4; int main() { int b=3,a=2; printf("%i*/%i*/%*/i",a,b,ab); }
13 kernal execute the first process when system is start--- ans :- init();
14 process id of kernal (a) 1 (b) 0 (c) 2 (d) none
15. Which one of the following represents a correct and safe declaration of NULL ?
a) typedef((void *)0) NULL;b) typedef NULL(char *)0;c) #define NULL((void *)0)d) #define NULL((char*)0)
16. Which one of the following statements allocates enough space to hold an array of 10 integers that are initialized to 0 ?
a) int *ptr = (int *) calloc(10,sizeof(int));b) int *ptr = (int *) alloc( 10*sizeof(int));c) int *ptr = (int *) malloc( 10*sizeof(int));d) int *ptr = (int *)calloc(10*sizeof(int));
======================GD TOPICS=====================
1- indian cricket team is consistent or not;2- IT shoud be necessary in rural area or not;3- sourav ganguli should be caption or not;4- advantage & disadvantages of Outsoursing;5- india & pakistan matches are pation (josh) or not;
0 Comments:
Post a Comment
<< Home