CMC - C placement paper

CMC - C placement paper


Q. What is the output of the following program?
main()
{
Int i=5;
If(i>5)
{
i=100;
printf(“%d”,i);
}
}

Q. What is the output of the following C Program?

main()
{
int a=32;
a=a>>6;
printf("%d",a);
}

Q. Find the error in the following C program.
main()
{
int a=5;
a=a----1;
printf("%d",a);
}

Q. Is it necessary for a variable to have a data type in C language? What is the data type of a pointer?

Q. What are the different types of ‘int’ available in C language?

Q. What is the difference between a short integer and long integer?

Q. What is the purpose of a pointer?

Q. What is the purpose of the static variable in C?

Q. What are the different parameter passing methods in C?

Q. In C language, how many levels of nesting may be possible?

Q. What do you mean by Block Structured? Is C a block Structured language?

Q. Is it possible that a function may call another function? How is that possible and up to what level?

Q. Differentiate the pointers of C language with that of Pascal.

Q. Is it possible to do assembly programming in C ?


Q. What is the error in the following C program?
#include
int main()
{
int a = 1,2;
printf("a : %d\n",a);
return 0;
}

Q. What is the output of the following C program?
#include
int main()
{
int a;
a = 1,2,3;
printf("a:%d\n",a);
return 0;
}

Q. What is the purpose of the format specifier %n of printf function?

Q. What is the error in the following program?
#include
int main()
{
int n;
printf("Enter your date of birth:\n");
scanf("%d\n",n);
printf("You entered %d \n",n);
return 0;
}

Q. Differentiate between memcpy and memove.

Q. Give format specifier for printf to print double values and float values.

Q. Is it possible to call main() within the main() function?

Q. Write a C program to perform the addition of two integers using only the bitwise operators.

Q. Write a C program to find the smallest of three given integers, without using any of the comparison operators.

Q. What is a macro? What are object like macros and function like macros?

Q. What is the error in the following C language code?
#include
int main()
{
int* ptr1,ptr2;
ptr1 = malloc(sizeof(int));
ptr2 = ptr1;
*ptr2 = 10;
return 0;
}

Q. What is a Stack Overflow?

Q. Name the stack used in 8085 microprocessor.

Q. What is the result of execution of HLT instruction in 8085 processor?

Q. What do u understand by a tri state logic in electronics?

Q. Differentiate between Object Oriented and Object based languages.

Q. What are the advantages and disadvantages of using inline functions and macros over a normal function?

Q. What is Interrupt Latency? How are Interrupt Service Routine helpful in reducing the Interrupt Latency?

Q. Explain the working of a MOSFET. What are the parameters to be considered for selecting a particular MOSFET?

Q. Mention different types of BJT configurations and give their applications.

Q. What is the use of a decoupling capacitor? What is the way to select the correct value of a decoupling capacitor?

Q. Mention the basic difference between a microprocessor and a microcontroller.

Q. What is the difference between a CPLD and FPGA?

Q. What is the basic and functional difference between LED and LCD?

Q. Explain the working of Touchscreen.

Q. What is the significance of Fan out in Software?

Q. What is the requirement of Heat Sink?

Q. How is the EMF generated in a Solar Cell?

Q. Which is the most important pin and its purpose in a micro controller?

Q. What is a race around condition? How to solve a race around condition?

Q. What is the distortion of a power amplifier? There are amplifiers whose distortions are 0.02% and the 0.01% respectively, which one is better?

Q. What is a repeater?
Post your comment