#1
June 16th, 2016, 08:40 AM
| |||
| |||
CDAC CET Exam Papers
Hello sir will you please provide me CDAC CET Exam Papers for my brother? My brother wants CDAC CET Exam Papers?
|
#2
June 16th, 2016, 08:40 AM
| |||
| |||
Re: CDAC CET Exam Papers
CDAC CAT will be conducted in the form of three objective type test papers labelled as Section – A (English, Critical Reasoning and Quantitative Aptitude), Section – B (Programming in C, Data Structures, Data Communications and Networking, OOPs and Operating Systems) and Section – C (Computer Architecture, Digital Electronics and Microprocessors) Here are some C-CAT Test Paper of computer: 1The operation for adding an entry to a stack is traditionally called: (a) Add (b) Append (c) Insert (d) Push 2The main purpose of declaring a union. (a) To allow the same storage location to store data of different data types at different times. (b) To use it instead of structure. (c) To allow the same storage location to store data of different data types at the same time. (d) None of the above 3The correct way for a structure in C to contain a pointer to itself is (a) typedef struct { char *item; NODEPTR next; } *NODEPTR; (b) struct node { char *item; struct node *next; }; typedef struct node *NODEPTR; (c) Both are correct. (d) None of above. 4 Consider the declaration : struct sample { unsigned int a; unsigned int b; }; struct sample v; The size of v.b is (a) 1 bit (b) 6 bits (c) 5 bits (d) None of the above 5 Consider the program segment given below. (The italicized numbers represent program line numbers) : 1. #include<stdio.h> 2. int y; 3. void main() 4. { 5. int x,*px,**ppx;void f1(int *); 6. x = 10; 7. y = 1000; 8. px = &x; 9. ppx = &px; 10. f1(px); 11. printf("%d",*px); 12. } 13. void f1(int *p) 14. { 15. *p = 20; 16. printf("%d",*p); 17. } The printf() at line 11 prints the value: (a) 10 (b) 1000 (c) 20 (d) None of these options 6 #include<stdio.h> void prg(int); main() { int a=10,j=3,i=2; prg(a); a*=( i + j ); printf("%d",a); } void prg(x) { int x; int k=2; x*=k; return (x); } What is the output of this program? (a) 10 (b) 20 (c) 50 (d) None of these 7 This pointer for any class internally declared as (a) int *this; (b) X *thid; (c) const X *this; (d) X *const this; 8 What is the output of the following code? #include<stdio.h> void main() { int arr[]={0,1,2,3,4,5,6}; int i,*ptr; for(ptr=arr+4,i =0; i<=4; i++) printf("\n%d",ptr[-i]); } (a) Error (b) 6 5 4 3 2 (c) 0 garbage garbage garbage garbage (d) 4 3 2 1 0 9 #include<stdio.h> void main() { int I=10,*p=&I,**q=&p; printf("%u",***(&(*(&Q)))); } What is the output of this program? (a) value of p is printed (b) address of p is printed (c) value of I is printed (d) address of I is printed 10 How can I dynamically allocate a two-dimensional array? (a) int **array1 = (int **)malloc(nrows * sizeof(int *)); for(i = 0; i < nrows; i++) array1[i] = (int *)malloc(ncolumns * sizeof(int)); (b) int **array2 = (int **)malloc(nrows * sizeof(int *)); array2[0] = (int *)malloc(nrows * ncolumns * sizeof(int)); for(i = 1; i < nrows; i++) array2[i] = array2[0] + i * ncolumns; (c) int *array3 = (int *)malloc(nrows * ncolumns * sizeof(int)); (d) Any of the above. |
|