c) static static int a; //a static variable prefixed with static d) all of the mentioned View Answer 18. Property which allows to produce different executable for different platforms in C is called? a) File inclusion b) Selective inclusion c) Conditional compilation d) Recursive macros View ...
13. What happens if the following program is executed in C and C++? #include <stdio.h>intmain(void){intnew=5;printf("%d",new);} a) Error in C and successful execution in C++ b) Error in both C and C++ c) Error in C++ and successful execution in C d) A successful run in bot...
C Programming MCQ – Functions This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Functions”.Pre-requisite for this C MCQ set: Advanced C Programming Video Tutorial.1. What will be the output of the following C code?
This set of C Multiple Choice Questions & Answers (MCQs) focuses on “Arrays”. Pre-requisite for C Arrays MCQ set:Video Tutorial on C Arrays. 1. What will be output of the following C code where we copy an array ‘a’ into array ‘b’ and then the array ‘b’ into ‘a’? #in...
This set of C++ Programming Multiple Choice Questions & Answers (MCQs) focuses on “Vector Arithmetic”. 1. Which of the following library is used to do vector arithmetic? a) Boost b) Time c) OpenGL d) OpenDL View Answer 2. Which header file is used to manipulate the vector algebra in...
c) 2048 d) 512 View Answer 7. How many bits are present in a single IP address? a) 8 b) 16 c) 32 d) 64 View Answer 8. Which of the following is the full form of DNS? a) Data Network Service b) Data Name Service c) Domain Network Service ...
/* C Program to find the number of leaf nodes in a Tree */ #include <stdio.h> #include <stdlib.h> structnode { intinfo; structnode*left,*right; }; /* * Function to create new nodes */ structnode*createnode(intkey) { structnode*newnode=(structnode*)malloc(sizeof(structnode));...
This C Tutorial explains the difference between Macro and Const Declaration. Lets start with: what is/are the difference/s between the following two statements and which of these two is efficient and meaningful? #define SIZE 50 int const size = 50; ...
8. Compiler Design MCQ on Storage Management The section contains Compiler Design questions and answers on storage, stack and static allocations. Storage Allocation – 1 Storage Allocation – 2 Activation of the Procedure and the Activation Record – 1 ...
Java Programming MCQ (Multiple Choice Questions) Here are 1000 MCQs on Java Programming (Chapterwise). 1. Who invented Java Programming? a) Guido van Rossum b) James Gosling c) Dennis Ritchie d) Bjarne Stroustrup View Answer 2. Which statement is true about Java?