To what value are pointers initialized? 1) NULL 2) Newly allocated memory 3) No action is taken by the compiler to initialize pointers.
4 9781Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort
7 16664Which of the following data structures is on average the fastest for retrieving data: 1) Binary Tree 2) Hash Table 3) Stack
3 13708Evaluate the following: int fn(int v) { if(v==1 || v==0) return 1; if(v%2==0) return fn(v/2)+2; else return fn(v-1)+3; } for fn(7); 1) 10 2) 11 3) 1
6 20322True or false: If you continuously increment a variable, it will become negative? 1) True 2) False 3) It depends on the variable type
7 16411Which of the following is not a valid declaration for main ()? 1) int main() 2) int main(int argc, char *argv[]) 3) They both work
2 13068void swap(int a,int b) { a=a+b; b=a-b; a=a-b; } in this code always gives the same result for all case
9 18826if a five digit number is input through the keyboard, write a program to calculate the sum of its digits. (hint:-use the modulus operator.'%')
23 80713Write a program or provide a pseudo code to flip the 2nd bit of the 32 bit number ! (Phone Screen)
1 6944
What are terms in math?
Why do we use header files in c?
What is identifiers in c with examples?
What is #ifdef ? What is its application?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
For what purpose null pointer used?
What is the stack in c?
How can a process change an environment variable in its caller?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
How are structure passing and returning implemented?
How are variables declared in c?
How do you use a 'Local Block'?
At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with these names could be kept in that shelf as in this example: bottom of shelf ---> [AAAJKRDFDEWAAYFYYKK]-----Top of shelf. All these packets are to be loaded on cars. The cars are lined in order, so that the packet could be loaded on them. The cars are also named [A, B, C, D, E,………….]. Each Car will load the packet with the same alphabet. So, for example, car ‘A’ will load all the packets with name ‘A’. Each particular car will come at the loading point only once. The cars will come at the loading point in alphabetical order. So, car ‘B’ will come and take all the packets with name ‘B’ from the shelf, then car ‘C’ will come. No matter how deep in the shelf any packet ‘B’ is, all of the ‘B’ packets will be displaced before the ‘C’ car arrives. For that purpose, some additional shelves are provided. The packets which are after the packet B, are kept in those shelves. Any one of these shelves contains only packets, having the same name. For example, if any particular shelf is used and if a packet with name X is in it, then only the packets having names X will be kept in it. That shelf will look like [XXXXXXX]. If any shelf is used once, then it could be used again only if it is vacant. Packets from the initial shelf could be unloaded from top only. Write a program that finds the minimum total number of shelves, including the initial one required for this loading process.
What is include directive in c?
Why c is called a middle level language?