0% found this document useful (0 votes)
49 views

CMC Technical Question: C Questions

This document contains a collection of technical questions on various computer science topics. There are questions related to C programming, data structures, algorithms, SQL, OOP concepts, and operating systems. The questions cover topics such as bitwise operators, precedence, decision tables, functional dependencies, inheritance, and more. Multiple choice and code snippet answers are provided for some questions.

Uploaded by

Jigyasa Gautam
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

CMC Technical Question: C Questions

This document contains a collection of technical questions on various computer science topics. There are questions related to C programming, data structures, algorithms, SQL, OOP concepts, and operating systems. The questions cover topics such as bitwise operators, precedence, decision tables, functional dependencies, inheritance, and more. Multiple choice and code snippet answers are provided for some questions.

Uploaded by

Jigyasa Gautam
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

http://exampapers1234.blogspot.

com/
CMC Technical Question
1. 2. 3. 4. If we use front end processor for I/O operations then the load will be reduced on ans:cpu one question on DMA ans:DMA In list of 4 numbers the maximum number of comparisions to find the maximum and immediate maximum number Confuguration management does not consider about ans:hard ware devices. Which of the following testing methods is used as a aceptency test ans:functional testing If the number of conditions in the decision table is n,the max number of ans:2 power n If(node!=null) { write(node) A(left B,right D) traverse(right subtree) D(left E,right f) write(node) traverse(left subtree)}

5. The most important factor of the coding: ans:readability. 6 7.

8. What is meant by swaping? 9.

10. A question on Functional Dependencies which is not FD in the following? 11. If T(x)=2T(x/2)+1 T(1)=1 and n is the power of 2 then T(x)=? ans:(2n-1) 12. If we want to access the data and members of a class to the immediate derived class which access specifier is used? ans:protected 13. Two questions on Queries(sql) technical test is easy.u must attempt first data comparisons, then arithmetic, then datasufficiency. 14. windows NT is: 1. extension to windows 95 2)mutiprocessing system 3. provides GUI 4)none of the above.

C Questions Read Exploring in c:(bitwise operators,precedence) 1. main() { int x=10,y=5,p,q;

http://exampapers1234.blogspot.com/
p=x>9; q=x>3&&y!=3; printf("p=%d q=%d",p,q); }ans:1,1. 2. main() { int x=11,y=6,z; z=x==5 || !=4; printf("z=%d",z); }ans:1 main() { int c=0,d=5,e=10,a; a=c>1?d>1||e>1?100:200:300; printf("a=%d",a); }ans:300 main() { int i=-5,j=-2; junk(i,&j); printf("i=%d,j=%d",i,j); } unk(i,j) int i,*j { i=i*i; *j=*j**j; } ans:-5,4; #define NO #define YES main() { int i=5,j; if(i>5) j=YES; else j=NO; printf("%d",j); } ans:Error message main() { int a=0xff; if(a<<4>>12) printf("leftist) else

6.

http://exampapers1234.blogspot.com/
printf("rightist") } ans:rightist 7 main() { int i=+1; while(~i) printf("vicious circles") } ans:continuous loop. One question on assigning two different structures; i.e structure1 variable1=structure1 variable2

You might also like