☰
×
Home
◈ Introduction
C - Data Types IQ
◈ C Data Type Tricky - I
◈ C Data Type Tricky - II
◈ C Data Type Tricky - III
◈ C Data Type Tricky - IV
◈ C Data Type Tricky - V
C - Operators IQ
◈ C Operators Tricky - I
◈ C Operators Tricky - II
◈ C Operators Tricky - III
Choose the Correct
◈ Choose the Correct Ans - I
◈ Choose the Correct Ans- II
◈ Choose the Correct Ans - III
◈ Choose the Correct Ans - IV
◈ Choose the Correct Ans - V
◈ Choose the Correct Ans - VI
Find Output - Tricky
◈ C Pgm Tricky Questions I
◈ C Pgm Tricky Questions II
◈ C Pgm Tricky Questions III
◈ C Pgm Tricky Questions IV
◈ C Pgm Tricky Questions V
◈ C Pgm Tricky Questions VI
◈ C Pgm Tricky Questions VII
◈ C Pgm Tricky Questions VIII
◈ C Pgm Tricky Questions IX
C - General IQ
◈ General C Questions I
◈ General C Questions II
◈ General C Questions III
◈ General C Questions IV
◈ General C Questions V
◈ General C Questions VI
◈ General C Questions VII
Home
About
Consulting
Training
Tutorial
Interview Questions
Contact
Interview Questions
C Pgm - Choose the Correct Ans
Home
C Interview Questions
◈ Introduction
C Data Types Tricky Questions
◈ C Data Type Tricky Questions I
◈ C Data Type Tricky Questions II
◈ C Data Type Tricky Questions III
◈ C Data Type Tricky Questions IV
◈ C Data Type Tricky Questions V
C Operators Interview Questions
◈ C Operators Tricky Questions I
◈ C Operators Tricky Questions II
◈ C Operators Tricky Questions III
Choose the Correct Answer
◈ Choose the Correct Answer I
◈ Choose the Correct Answer II
◈ Choose the Correct Answer III
◈ Choose the Correct Answer IV
◈ Choose the Correct Answer V
◈ Choose the Correct Answer VI
Find Output - Tricky C Program
◈ C Programs Tricky Questions I
◈ C Programs Tricky Questions II
◈ C Programs Tricky Questions III
◈ C Programs Tricky Questions IV
◈ C Programs Tricky Questions V
◈ C Programs Tricky Questions VI
◈ C Programs Tricky Questions VII
◈ C Programs Tricky Questions VIII
◈ C Programs Tricky Questions IX
General C Interview Questions
◈ General C Questions I
◈ General C Questions II
◈ General C Questions III
◈ General C Questions IV
◈ General C Questions V
◈ General C Questions VI
◈ General C Questions VII
C Programming Interview Questions
C - Choose the Correct Answer VI
« Prev
Next »
C Program - Choose the Correct Answer
51. What would be the output of following program assuming that the array begins at location 1002? main() { int a[2][3][4]= {{1,2,3,4, 5,6,7,8, 9,1,1,2 }, {2,4,1,7, 6,7,8,9, 0,0,0,0 } }; printf("%u %u %u %d\n",a,*a,**a,***a); } Options a) 1002 1002 1002 1002 b) 1002 1002 1002 1 c) c) 1002 1002 0 1 d) None 52. What does the following mean int (*ptr)[10]; Options a) Invalid declaration b) ptr is a pointer to an array of 10 integers c) ptr is an array of 10 pointers to integers d) None 53. Which is of following is wrong, when parent process forks a child process a) Signal mask is inherited by the child b) Attached shared memory segments are inherited by the child c) File locks set by the parent are inherited by the child d) Pending alarms are cleared for the child 54.Which of the following is not true a) DMA stands for direct memory access b) DMA module steals a bus cycle c) Number of bus cycles can be reduced by integrating DMA and i/o functions d) With latest technology, interrupt driven i/o is better than DMA 55. piggy backing is a technique for a) Flow control b) Sequence c) Acknowledgement d) Retransmission 56. Find out odd man out a) Load sharing b) round-robin scheduling c) shortest-job-fist (SJF) scheduling d) First come first serve scheduling 57. Find out odd man out a) socket b) semaphore c) message queue d) shared memory 58. Find out odd man out a) base-register addressing b) relative addressing c) displacement addressing d) direct addressing 59. Which of the following process state flow is wrong a) new --> ready --> running b) running --> waiting --> ready c) waiting --> running --> terminated d) running --> ready --> running 60. Find the correct statement a) paging permits the physical address space of a process to be non-contiguous b) paging may lead to internal fragmentation c) TLB miss causes a memory reference to the page table d) a hashed page table cannot handle address spaces larger than 32 bits 61. Consider following instructions MOVE Y,A SUB Y,B MOVE T,D MPY T,E ADD T,C DIV Y,T Which of the following expression below is coded above? a) Y=(B-A)/(E*D+C) b) Y=(E*D+C)/(B-A) c) Y=(A-B)/(C+D*E) d) Y=(C+D*E)/(A-B) 62. Which signal is sent when a process makes an invalid memory reference Options a) SIGSTOP b) SIGQUIT c) SIGKILL d) SIGSEGV 63. Specify whether the below statement are TRUE or FALSE a) 'new' not only allocate memory , but also calls the object's constructor b)'delete' can be used multiple times on a pointer. 64. What is the “space complexity” of below function? fun(n) { if(n==0) return 1; else return n * fun(n-1); Options a) O(1) b) O(n) c) O(n^2) d) None 65. What is the proper method of opening a file for writing as binary file? Options a) FILE *fp=fopenb(“test.bin” , “w”); b) FILE *fp=fwrite(“test.bin” , “b”); c) FILE *fp=fwriteb(“test.bin”); d) FILE *fp=fopen(“test.bin” , “wb”);
« Prev
Next »
Helpful Links
Sateeshkg Home
Interview Questions
Corporate Training
Recommended Books
Linux Consulting
Apply for Job Assistance
If you have any queries please email us at
info@motionzen.com