Programming Languages /100 3 1 / 100 Which of the following is a correct format for declaration of function? निम्नलिखित में से कौन सा फ़ंक्शन की घोषणा के लिए सही प्रारूप है? return-type function-name(argument type); return-type function-name(argument type){} return-type (argument type)function-name; all of the mentioned 2 / 100 function tolower(c) defined in library works for ___________ लाइब्रेरी में परिभाषित फ़ंक्शन tolower(c) ___________ के लिए काम करता है Ascii character set Unicode character set Ascii and utf-8 but not EBCDIC character set Any character set 3 / 100 C preprocessors can have compiler specific features. सी प्रीप्रोसेसर में कंपाइलर विशिष्ट विशेषताएं हो सकती हैं। True False Depends on the standard Depends on the platform 4 / 100 Which of the following cannot be a variable name in C? निम्नलिखित में से कौन सा C में एक वेरिएबल नाम नहीं हो सकता है? volatile true friend export 5 / 100 Which of the following operators has the lowest precedence? निम्नलिखित में से किस ऑपरेटर की प्राथमिकता सबसे कम है? != && ?: , 6 / 100 Which of the following is NOT possible with any 2 operators in C? C में किन्हीं दो ऑपरेटरों के साथ निम्नलिखित में से कौन सा संभव नहीं है? Different precedence, same associativity Different precedence, different associativity Same precedence, different associativity All of the mentioned 7 / 100 scanf() is a predefined function in______header file. scanf() ______हेडर फ़ाइल में एक पूर्वनिर्धारित फ़ंक्शन है। stdlib. h ctype. h stdio. h stdarg. h 8 / 100 Which of the following is true for variable names in C? C में वेरिएबल नामों के लिए निम्नलिखित में से कौन सा सत्य है? They can contain alphanumeric characters as well as special characters It is not an error to declare a variable to be one of the keywords(like goto, static) Variable names cannot start with a digit Variable can be of any length 9 / 100 Which keyword is used to prevent any changes in the variable within a C program? C प्रोग्राम में वेरिएबल में किसी भी बदलाव को रोकने के लिए किस कीवर्ड का उपयोग किया जाता है? immutable mutable const volatile 10 / 100 The C code ‘for(;;)’ represents an infinite loop. It can be terminated by ___________ C कोड 'for(;;)' एक अनंत लूप का प्रतिनिधित्व करता है। इसे ___________ द्वारा समाप्त किया जा सकता है break exit(0) abort() terminate 11 / 100 What will be the output of the following C code considering the size of a short int is 2, char is 1 and int is 4 bytes? निम्नलिखित C कोड का आउटपुट क्या होगा, यह देखते हुए कि एक छोटे int का आकार 2 है, char का 1 है और int का 4 बाइट्स है? #include int main() { short int i = 20; char c = 97; printf("%d, %d, %d\n", sizeof(i), sizeof(c), sizeof(c + i)); return 0; } 2, 1, 2 2, 1, 1 2, 1, 4 2, 2, 8 12 / 100 When double is converted to float, then the value is? जब डबल को फ्लोट में परिवर्तित किया जाता है, तो मान क्या होता है? Truncated Rounded Depends on the compiler Depends on the standard 13 / 100 How is search done in #include and #include “somelibrary.h” according to C standard? C मानक के अनुसार #include और #include "somelibrary.h" में खोज कैसे की जाती है? When former is used, current directory is searched and when latter is used, standard directory is searched When former is used, standard directory is searched and when latter is used, current directory is searched When former is used, search is done in implementation defined manner and when latter is used, current directory is searched For both, search for ‘somelibrary’ is done in implementation-defined places 14 / 100 Which of the following statement is false? निम्नलिखित में से कौन सा कथन गलत है? Constant variables need not be defined as they are declared and can be defined later Global constant variables are initialized to zero const keyword is used to define constant values You cannot reassign a value to a constant variable 15 / 100 Which of the following is not an arithmetic operation? निम्नलिखित में से कौन सा एक अंकगणितीय संक्रिया नहीं है? a * = 10; a / = 10; a ! = 10; a % = 10; 16 / 100 Which of the following is NOT possible with any 2 operators in C? C में किन्हीं दो ऑपरेटरों के साथ निम्नलिखित में से कौन सा संभव नहीं है? Different precedence, same associativity Different precedence, different associativity Same precedence, different associativity All of the mentioned 17 / 100 How many number of pointer (*) does C have against a pointer variable declaration? C के पास पॉइंटर वेरिएबल घोषणा के विरुद्ध पॉइंटर (*) की कितनी संख्या है? 7 127 255 No limits 18 / 100 Which among the following is NOT a logical or relational operator? निम्नलिखित में से कौन सा एक तार्किक या संबंधपरक ऑपरेटर नहीं है? != == || = 19 / 100 Can we use a function as a parameter of another function? [Eg: void wow(int func())]. क्या हम किसी फ़ंक्शन को किसी अन्य फ़ंक्शन के पैरामीटर के रूप में उपयोग कर सकते हैं? [उदाहरण: void wow(int func())]। Yes, and we can use the function value conveniently Yes, but we call the function again to get the value, not as convenient as in using variable No, C does not support it This case is compiler dependent 20 / 100 What will be the output of the following C code? (Initial values: x= 7, y = 8) निम्नलिखित C कोड का आउटपुट क्या होगा? (प्रारंभिक मान: x= 7, y = 8) #include void main() { float x; int y; printf("enter two numbers \n"); scanf("%f %f", &x, &y); printf("%f, %d", x, y); } 7.000000, 7 Run time error 7.000000, junk Varies 21 / 100 Which of the following statement is false? निम्नलिखित में से कौन सा कथन गलत है? A variable defined once can be defined again with different scope A single variable cannot be defined with two different types in the same scope A variable must be declared and defined at the same time A variable refers to a location in memory 22 / 100 Which for loop has range of similar indexes of ‘i’ used in for (i = 0;i < n; i++)? लूप के लिए किसमें (i = 0;i < n; i++) के लिए उपयोग किए जाने वाले 'i' के समान इंडेक्स की सीमा होती है? for (i = n; i>0; i–) for (i = n; i >= 0; i–) for (i = n-1; i>0; i–) for (i = n-1; i>-1; i–) 23 / 100 Functions can return enumeration constants in C? फ़ंक्शंस C में गणना स्थिरांक लौटा सकते हैं? true false depends on the compiler depends on the standard 24 / 100 What will happen if the following C code is executed? #include int main() { int main = 3; printf("%d", main); return 0; } निम्नलिखित C कोड का आउटपुट क्या होगा? It will cause a compile-time error It will cause a run-time error It will run without any error and prints 3 It will experience infinite looping 25 / 100 Which keyword is used to come out of a loop only for that iteration? केवल उस पुनरावृत्ति के लिए लूप से बाहर आने के लिए किस कीवर्ड का उपयोग किया जाता है? break continue return none of the mentioned 26 / 100 Which of the following typecasting is accepted by C language? निम्नलिखित में से कौन सी टाइपकास्टिंग C भाषा द्वारा स्वीकार की जाती है? Widening conversions Narrowing conversions Widening & Narrowing conversions None of the mentioned 27 / 100 Which of the following return-type cannot be used for a function in C? निम्नलिखित में से कौन सा रिटर्न-प्रकार C में किसी फ़ंक्शन के लिए उपयोग नहीं किया जा सकता है? char * struct void none of the mentioned 28 / 100 What is the sizeof(char) in a 32-bit C compiler? 32-बिट सी कंपाइलर में साइज़ऑफ़ (चार) क्या है? 1 bit 2 bits 1 Byte 2 Bytes 29 / 100 What is the result of logical or relational expression in C? C में तार्किक या संबंधपरक अभिव्यक्ति का परिणाम क्या है? True or False 0 or 1 0 if an expression is false and any positive number if an expression is true None of the mentioned 30 / 100 When a C program is started, O.S environment is responsible for opening file and providing pointer for that file? जब कोई C प्रोग्राम प्रारंभ किया जाता है, तो O.S वातावरण फ़ाइल खोलने और उस फ़ाइल के लिए पॉइंटर प्रदान करने के लिए जिम्मेदार होता है? Standard input Standard output Standard error All of the mentioned 31 / 100 Where in C the order of precedence of operators do not exist? सी में कहां ऑपरेटरों की प्राथमिकता का क्रम मौजूद नहीं है? Within conditional statements, if, else Within while, do-while Within a macro definition None of the mentioned 32 / 100 Which of the following cannot be used as LHS of the expression in for (exp1;exp2; exp3)? निम्नलिखित में से किसको (exp1;exp2; exp3) के लिए अभिव्यक्ति के LHS के रूप में उपयोग नहीं किया जा सकता है? variable function typedef macros 33 / 100 What is an example of iteration in C? C में पुनरावृत्ति का उदाहरण क्या है? for while do-while all of the mentioned 34 / 100 Relational operators cannot be used on ____________ रिलेशनल ऑपरेटर्स का उपयोग ____________ पर नहीं किया जा सकता है structure long strings float 35 / 100 Which keyword is used to prevent any changes in the variable within a C program? C प्रोग्राम में वेरिएबल में किसी भी बदलाव को रोकने के लिए किस कीवर्ड का उपयोग किया जाता है? immutable mutable const volatile 36 / 100 A variable declared in a function can be used in main() किसी फ़ंक्शन में घोषित वेरिएबल का उपयोग मुख्य() में किया जा सकता है True False True if it is declared static None of the mentioned 37 / 100 Which keyword can be used for coming out of recursion? रिकर्सन से बाहर आने के लिए किस कीवर्ड का उपयोग किया जा सकता है? break return exit both break and return 38 / 100 Which of the following method is accepted for assignment? असाइनमेंट के लिए निम्नलिखित में से कौन सी विधि स्वीकार की जाती है? 5 = a = b = c = d; a = b = c = d = 5; a = b = 5 = c = d; None of the mentioned 39 / 100 What will be the value of the following assignment expression? निम्नलिखित असाइनमेंट अभिव्यक्ति का मूल्य क्या होगा? (x = foo())!= 1 considering foo() returns 2 2 True 1 0 40 / 100 Which of following is not accepted in C? निम्नलिखित में से कौन सा C में स्वीकार नहीं किया जाता है? static a = 10; //static as static int func (int); //parameter as static static static int a; //a static variable prefixed with static all of the mentioned 41 / 100 Which of the following function declaration is illegal? निम्नलिखित में से कौन सा फ़ंक्शन घोषणा अवैध है? int 1bhk(int); int 1bhk(int a); int 2bhk(int*, int []); all of the mentioned 42 / 100 Which datatype can accept the switch statement? कौन सा डेटाटाइप स्विच स्टेटमेंट को स्वीकार कर सकता है? int char long all of the mentioned 43 / 100 Are logical operator sequence points? क्या तार्किक संचालिका अनुक्रम बिंदु हैं? True False Depends on the compiler Depends on the standard 44 / 100 Associativity of an operator is ___________ एक ऑपरेटर की सहयोगीता ___________ है Right to Left Left to Right Random fashion Both Right to Left and Left to Right 45 / 100 What is #include ? #include क्या है? Preprocessor directive Inclusion directive File inclusion directive None of the mentioned 46 / 100 Which of the following is not a pointer declaration? निम्नलिखित में से कौन सूचक घोषणा नहीं है? char a[10]; char a[] = {‘1’, ‘2’, ‘3’, ‘4’}; char *str; char a; 47 / 100 In C language, FILE is of which data type? C भाषा में FILE किस डेटा प्रकार का होता है? int char * struct None of the mentioned 48 / 100 What will be the output of the following C code? #include int main() { signed char chr; chr = 128; printf("%d\n", chr); return 0; } निम्नलिखित C कोड का आउटपुट क्या होगा? 128 -128 Depends on the compiler None of the mentioned 49 / 100 Which among the following are the fundamental arithmetic operators, i.e, performing the desired operation can be done using that operator only? निम्नलिखित में से कौन सा मौलिक अंकगणितीय ऑपरेटर है, अर्थात, वांछित ऑपरेशन केवल उस ऑपरेटर का उपयोग करके किया जा सकता है? +, – +, -, % +, -, *, / +, -, *, /, % 50 / 100 What will be the output of the following C function? निम्नलिखित C फ़ंक्शन का आउटपुट क्या होगा? #include void reverse(int i); int main() { reverse(1); } void reverse(int i) { if (i > 5) return ; printf("%d ", i); return reverse((i++, i)); } 1 2 3 4 5 Segmentation fault Compilation error Undefined behaviour 51 / 100 Which of the following is not a valid C variable name? निम्नलिखित में से कौन सा वैध C वेरिएबल नाम नहीं है? int number; float rate; int variable_count; int $main; 52 / 100 What will be the final value of x in the following C code? निम्नलिखित C कोड में x का अंतिम मान क्या होगा? #include void main() { int x = 5 * 9 / 3 + 9; } 3.75 Depends on compiler 24 3 53 / 100 Functions in C Language are always _________ C भाषा में फ़ंक्शन हमेशा _________ होते हैं Internal External Both Internal and External External and Internal are not valid terms for functions 54 / 100 Who is the father of C language? C भाषा का जनक कौन है? Steve Jobs James Gosling Dennis Ritchie Rasmus Lerdorf 55 / 100 What will be the final values of i and j in the following C code? निम्नलिखित C कोड में i और j का अंतिम मान क्या होगा? #include int x = 0; int f() { if (x == 0) return x + 1; else return x - 1; } int g() { return x++; } int main() { int i = (f() + g()) | g(); //bitwise or int j = g() | (f() + g()); //bitwise or } i value is 1 and j value is 1 i value is 0 and j value is 0 i value is 1 and j value is undefined i and j value are undefined 56 / 100 What is meant by ‘a’ in the following C operation? fp = fopen("Random.txt", "a"); निम्नलिखित C ऑपरेशन में 'a' का क्या अर्थ है? fp = fopen('Random.txt', 'a'); Attach Append Apprehend Add 57 / 100 Which of the following data type will throw an error on modulus operation(%)? निम्नलिखित में से कौन सा डेटा प्रकार मॉड्यूलस ऑपरेशन (%) पर त्रुटि देगा? char short int float 58 / 100 Which of the following type-casting have chances for wrap around? निम्नलिखित में से किस टाइप-कास्टिंग में रैप अराउंड की संभावना होती है? From int to float From int to char From char to short From char to int 59 / 100 Which of the following are C preprocessors? निम्नलिखित में से कौन सी प्रीप्रोसेसर हैं? #ifdef #define #endif all of the mentioned 60 / 100 When do you need to use type-conversions? आपको प्रकार-रूपांतरण का उपयोग करने की आवश्यकता कब होती है? The value to be stored is beyond the max limit The value to be stored is in a form not supported by that data type To reduce the memory in use, relevant to the value All of the mentioned 61 / 100 The keyword ‘break’ cannot be simply used within _________ कीवर्ड 'ब्रेक' का उपयोग केवल _________ के भीतर नहीं किया जा सकता है do-while if-else for while 62 / 100 Operation “a = a * b + a” can also be written as ___________ ऑपरेशन "ए = ए * बी + ए" को ___________ के रूप में भी लिखा जा सकता है a *= b + 1; (c = a * b)!=(a = c + a); a = (b + 1)* a; All of the mentioned 63 / 100 What is short int in C programming? C प्रोग्रामिंग में शॉर्ट इंट क्या है? The basic data type of C Qualifier Short is the qualifier and int is the basic data type All of the mentioned 64 / 100 Which of the following operators has an associativity from Right to Left? निम्नलिखित में से किस ऑपरेटर की संबद्धता दाएं से बाएं है? <= << == += 65 / 100 Which of the following is not an operator in C? निम्नलिखित में से कौन सा C में ऑपरेटर नहीं है? , sizeof() ~ None of the mentioned 66 / 100 Which loop is most suitable to first perform the operation and then test the condition? पहले ऑपरेशन करने और फिर स्थिति का परीक्षण करने के लिए कौन सा लूप सबसे उपयुक्त है? for loop while loop do-while loop none of the mentioned 67 / 100 Do logical operators in the C language are evaluated with the short circuit? क्या सी भाषा में लॉजिकल ऑपरेटरों का मूल्यांकन शॉर्ट सर्किट से किया जाता है? True False Depends on the compiler Depends on the standard 68 / 100 All keywords in C are in ____________ C में सभी कीवर्ड ____________ में हैं LowerCase letters UpperCase letters CamelCase letters None of the mentioned 69 / 100 What will be the output of the following C function when EOF returns? EOF के वापस आने पर निम्नलिखित C फ़ंक्शन का आउटपुट क्या होगा? int fputs(char *line, FILE *fp) ‘�’ character of array line is encountered ‘n’ character in array line is encountered ‘t’ character in array line is encountered When an error occurs 70 / 100 The name of the variable used in one function cannot be used in another function. एक फ़ंक्शन में प्रयुक्त वेरिएबल का नाम दूसरे फ़ंक्शन में उपयोग नहीं किया जा सकता है। True False 71 / 100 What is the precedence of arithmetic operators (from highest to lowest)? अंकगणितीय ऑपरेटरों की प्राथमिकता क्या है (उच्चतम से निम्नतम तक)? %, *, /, +, – %, +, /, *, – +, -, %, *, / %, +, -, *, / 72 / 100 Property which allows to produce different executable for different platforms in C is called? वह संपत्ति जो C में विभिन्न प्लेटफार्मों के लिए अलग-अलग निष्पादन योग्य बनाने की अनुमति देती है, कहलाती है? File inclusion Selective inclusion Conditional compilation Recursive macros 73 / 100 What will be the output of the following C code snippet? निम्नलिखित C कोड स्निपेट का आउटपुट क्या होगा? #include void main() { 1 < 2 ? return 1: return 2; } returns 1 returns 2 Varies Compile time error 74 / 100 Which of the following is not possible statically in C language? निम्नलिखित में से क्या C भाषा में स्थिर रूप से संभव नहीं है? Jagged Array Rectangular Array Cuboidal Array Multidimensional Array 75 / 100 Will the following C code compile without any error? क्या निम्नलिखित C कोड बिना किसी त्रुटि के संकलित होगा? #include int main() { for (int k = 0; k < 10; k++); return 0; } Yes No Depends on the C standard implemented by compilers Error 76 / 100 What is the difference between the following 2 C codes? निम्नलिखित 2 सी कोड के बीच क्या अंतर है? #include //Program 1 int main() { int d, a = 1, b = 2; d = a++ + ++b; printf("%d %d %d", d, a, b); } #include //Program 2 int main() { int d, a = 1, b = 2; d = a++ +++b; printf("%d %d %d", d, a, b); } No difference as space doesn’t make any difference, values of a, b, d are same in both the case Space does make a difference, values of a, b, d are different Program 1 has syntax error, program 2 is not Program 2 has syntax error, program 1 is not 77 / 100 Which of the following declaration is not supported by C? निम्नलिखित में से कौन सी घोषणा C द्वारा समर्थित नहीं है? String str; char *str; float str = 3e2; Both “String str;” and “float str = 3e2;” 78 / 100 goto can be used to jump from main() to within a function. गोटो का उपयोग मुख्य() से किसी फ़ंक्शन के भीतर जाने के लिए किया जा सकता है। true false depends varies 79 / 100 Which type of conversion is NOT accepted? किस प्रकार का रूपांतरण स्वीकार नहीं किया जाता है? From char to int From float to char pointer From negative int to char From double to char 80 / 100 What will be the output of the following C function? #include enum birds {SPARROW, PEACOCK, PARROT}; enum animals {TIGER = 8, LION, RABBIT, ZEBRA}; int main() { enum birds m = TIGER; int k; k = m; printf("%d\n", k); return 0; } निम्नलिखित C फ़ंक्शन का आउटपुट क्या होगा? 0 Compile time error 1 8 81 / 100 What will be the output of the following C code? #include int main() { int y = 10000; int y = 34; printf("Hello World! %d\n", y); return 0; } निम्नलिखित C कोड का आउटपुट क्या होगा? Compile time error Hello World! 34 Hello World! 1000 Hello World! followed by a junk value 82 / 100 In expression i = g() + f(), first function called depends on __________ अभिव्यक्ति i = g() + f() में, बुलाया गया पहला फ़ंक्शन __________ पर निर्भर करता है Compiler Associativiy of () operator Precedence of () and + operator Left to write of the expression 83 / 100 enum types are processed by _________ एनम प्रकार को _________ द्वारा संसाधित किया जाता है Compiler Preprocessor Linker Assembler 84 / 100 Which of the following is an invalid assignment operator? निम्नलिखित में से कौन सा अमान्य असाइनमेंट ऑपरेटर है? a %= 10; a /= 10; a |= 10; None of the mentioned 85 / 100 For which of the following, “PI++;” code will fail? निम्नलिखित में से किसके लिए, "PI++;" कोड विफल हो जाएगा? #define PI 3.14 char *PI = “A”; float PI = 3.14; none of the Mentioned 86 / 100 Where in C the order of precedence of operators do not exist? सी में कहां ऑपरेटरों की प्राथमिकता का क्रम मौजूद नहीं है? Within conditional statements, if, else Within while, do-while Within a macro definition None of the mentioned 87 / 100 How many times i value is checked in the following C program? निम्नलिखित C प्रोग्राम में i वैल्यू को कितनी बार चेक किया जाता है? #include int main() { int i = 0; while (i < 3) i++; printf("In while loop\n"); } 2 3 4 1 88 / 100 What is an example of iteration in C? C में पुनरावृत्ति का उदाहरण क्या है? for while do-while all of the mentioned 89 / 100 The standard header _______ is used for variable list arguments (…) in C. मानक हेडर _______ का उपयोग C में परिवर्तनीय सूची तर्कों (...) के लिए किया जाता है। <stdio.h > <stdlib.h> <math.h> <stdarg.h> 90 / 100 What is the result of logical or relational expression in C? C में तार्किक या संबंधपरक अभिव्यक्ति का परिणाम क्या है? True or False 0 or 1 0 if an expression is false and any positive number if an expression is true None of the mentioned 91 / 100 What will be the output of the following C code? निम्नलिखित C कोड का आउटपुट क्या होगा? #include int const print() { printf("Sanfoundry.com"); return 0; } void main() { print(); } Error because function name cannot be preceded by const Sanfoundry.com Sanfoundry.com is printed infinite times Blank screen, no output 92 / 100 Which is valid C expression? वैध C अभिव्यक्ति कौन सी है? int my_num = 100,000; int my_num = 100000; int my num = 1000; int $my_num = 10000; 93 / 100 Which of the following are unary operators? निम्नलिखित में से कौन यूनरी ऑपरेटर हैं? sizeof – ++ all of the mentioned 94 / 100 The C-preprocessors are specified with _________ symbol. C-प्रीप्रोसेसरों को _________ प्रतीक के साथ निर्दिष्ट किया जाता है। # $ " " & 95 / 100 Which of the following operator has the highest precedence in the following? निम्नलिखित में से किस ऑपरेटर की प्राथमिकता सबसे अधिक है? () sizeof * + 96 / 100 Which of the following declaration is not supported by C language? निम्नलिखित में से कौन सी घोषणा C भाषा द्वारा समर्थित नहीं है? String str; char *str; float str = 3e2; Both “String str;” and “float str = 3e2;” 97 / 100 Which of the following is an invalid if-else statement? निम्नलिखित में से कौन सा यदि-अन्यथा कथन अमान्य है? if (if (a == 1)){} if (func1 (a)){} if (a){} if ((char) a){} 98 / 100 Which of the following declaration is illegal? निम्नलिखित में से कौन सी घोषणा अवैध है? char *str = “Best C programming classes by Sanfoundry”; char str[] = “Best C programming classes by Sanfoundry”; char str[20] = “Best C programming classes by Sanfoundry”; char[] str = “Best C programming classes by Sanfoundry”; 99 / 100 What will be the output of the following C code on a 64 bit machine? #include union Sti { int nu; char m; }; int main() { union Sti s; printf("%d", sizeof(s)); return 0; } 64 बिट मशीन पर निम्नलिखित C कोड का आउटपुट क्या होगा? 8 5 9 4 100 / 100 Which of the following is a ternary operator? निम्नलिखित में से कौन टर्नरी ऑपरेटर है? && >>= ?: -> Your score is LinkedIn Facebook Twitter VKontakte 0% /100 0 1 / 100 Which concept is used to implement late binding? लेट बाइंडिंग को लागू करने के लिए किस अवधारणा का उपयोग किया जाता है? Virtual functions Operator functions Constant functions Static functions 2 / 100 How can you access the arguments that are manipulated in the function? आप फ़ंक्शन में हेरफेर किए गए तर्कों तक कैसे पहुंच सकते हैं? va_list arg_list both va_list & arg_list vg_list 3 / 100 If we start our function call with default arguments means, what will be proceeding arguments? यदि हम अपना फ़ंक्शन कॉल डिफ़ॉल्ट तर्कों के साथ शुरू करते हैं, तो आगे बढ़ने वाले तर्क क्या होंगे? user argument empty arguments default arguments user & empty arguments 4 / 100 Which members are inherited but are not accessible in any case? कौन से सदस्य विरासत में मिले हैं लेकिन किसी भी मामले में पहुंच योग्य नहीं हैं? Private Public Protected Both private and protected 5 / 100 Which of the following is not one of the sizes of the floating point types? निम्नलिखित में से कौन सा फ़्लोटिंग पॉइंट प्रकार के आकारों में से एक नहीं है? short float float long double double 6 / 100 How are the constants declared? स्थिरांक कैसे घोषित किये जाते हैं? const keyword #define preprocessor both const keyword and #define preprocessor $define 7 / 100 Which of the following feature is not provided by C? निम्नलिखित में से कौन सी सुविधा C द्वारा प्रदान नहीं की गई है? Pointers Structures References Functions 8 / 100 Which of the following is a correct identifier in C++? C++ में निम्नलिखित में से कौन सा सही पहचानकर्ता है? 7var_name 7VARNAME VAR_1234 $var_name 9 / 100 Which variable does equals in size with enum variable? कौन सा वेरिएबल एनम वेरिएबल के आकार के बराबर है? int variable float variable string variable float & string variable 10 / 100 What happens if a class does not have a name? यदि किसी वर्ग का कोई नाम नहीं है तो क्या होगा? It will not have a constructor It will not have a destructor It is not allowed It will neither have a constructor or destructor 11 / 100 0946, 786427373824, ‘x’ and 0X2f are _____ _____ ____ and _____ literals respectively. 0946, 786427373824, 'x' और 0X2f क्रमशः _____ _____ ____ और _____ अक्षर हैं। decimal, character, octal, hexadecimal octal, hexadecimal, character, decimal hexadecimal, octal, decimal, character octal, decimal, character, hexadecimal 12 / 100 Which of the following cannot be used with the virtual keyword? निम्नलिखित में से किसका उपयोग वर्चुअल कीवर्ड के साथ नहीं किया जा सकता है? Class Member functions Constructors Destructors 13 / 100 What type of comments does c++ support? C++ किस प्रकार की टिप्पणियों का समर्थन करता है? single line multiline single line and multi-line reusable line 14 / 100 The void pointer can point to which type of objects? शून्य सूचक किस प्रकार की वस्तुओं को इंगित कर सकता है? int float double all of the mentioned 15 / 100 Which of the following is an abstract data type? निम्नलिखित में से कौन सा एक अमूर्त डेटा प्रकार है? int float class string 16 / 100 What happens when a null pointer is converted into bool? क्या होता है जब एक शून्य सूचक को बूल में परिवर्तित किया जाता है? an error is flagged bool value evaluates to true bool value evaluates to false the statement is ignored 17 / 100 In which type do the enumerators are stored by the compiler? कंपाइलर द्वारा प्रगणकों को किस प्रकार में संग्रहित किया जाता है? string integer float string & float 18 / 100 By default how the value are passed in c++? डिफ़ॉल्ट रूप से c++ में मान कैसे पारित किए जाते हैं? call by value call by reference call by pointer call by object 19 / 100 C++ is ______________ C++ ______________ है procedural programming language object oriented programming language functional programming language both procedural and object oriented programming language 20 / 100 How many types of returning values are present in c++? C++ में कितने प्रकार के रिटर्निंग मान मौजूद हैं? 1 2 3 4 21 / 100 To which of these enumerators can be assigned? इनमें से किसे प्रगणक नियुक्त किया जा सकता है? integer negative enumerator all of the mentioned 22 / 100 Which concept allows you to reuse the written code? कौन सी अवधारणा आपको लिखित कोड का पुन: उपयोग करने की अनुमति देती है? Encapsulation Abstraction Inheritance Polymorphism 23 / 100 What is the size of wchar_t in C++? C++ में wchar_t का आकार क्या है? 2 4 2 or 4 Based on the number of bits in the system 24 / 100 What will happen when the structure is declared? संरचना घोषित होने पर क्या होगा? it will not allocate any memory it will allocate the memory it will be declared and initialized it will be declared 25 / 100 Which of the following is a properly defined structure? निम्नलिखित में से कौन सी उचित रूप से परिभाषित संरचना है? struct {int a;} struct a_struct {int a;} struct a_struct int a; struct a_struct {int a;}; 26 / 100 Which of the following permits function overloading on c++? निम्नलिखित में से कौन सा परमिट c++ पर ओवरलोडिंग कार्य करता है? type number of arguments type & number of arguments number of objects 27 / 100 Is bool a fundamental data type in C++? क्या बूल C++ में एक मौलिक डेटा प्रकार है? Yes No, it is a typedef of unsigned char No, it is an enum of {false, true} No, it is expanded from macros 28 / 100 Which is correct with respect to the size of the data types? डेटा प्रकारों के आकार के संबंध में कौन सा सही है? char > int < float int < char > float char < int < float char < int < double 29 / 100 Which of the following is the correct syntax of including a user defined header files in C++? C++ में उपयोगकर्ता परिभाषित हेडर फ़ाइलों को शामिल करने के लिए निम्नलिखित में से कौन सा सही सिंटैक्स है? #include <userdefined.h> #include <userdefined> #include “userdefined” #include [userdefined] 30 / 100 Why this pointer is used? इस सूचक का उपयोग क्यों किया जाता है? To access the members of a class which have the same name as local variables in that scope To access all the data stored under that class To access objects of other class To access objects of other variables 31 / 100 Who created C++? C++ किसने बनाया? Bjarne Stroustrup Dennis Ritchie Ken Thompson Brian Kernighan 32 / 100 The constants are also called as _____________ स्थिरांकों को _____________ भी कहा जाता है const preprocessor literals variables 33 / 100 How to declare a wide character in the string literal? स्ट्रिंग शाब्दिक में विस्तृत वर्ण कैसे घोषित करें? L prefix l prefix W prefix Z prefix 34 / 100 Which operator is having the highest precedence? किस ऑपरेटर को सर्वोच्च प्राथमिकता प्राप्त है? postfix unary shift equality 35 / 100 Function overloading is also similar to which of the following? फंक्शन ओवरलोडिंग भी निम्नलिखित में से किसके समान है? operator overloading constructor overloading destructor overloading function overloading 36 / 100 In C++, what is the sign of character data type by default? C++ में, डिफ़ॉल्ट रूप से कैरेक्टर डेटा प्रकार का चिन्ह क्या है? Signed Unsigned Implementation dependent Unsigned Implementation 37 / 100 The size of an object or a type can be determined using which operator? किसी वस्तु या प्रकार का आकार किस ऑपरेटर का उपयोग करके निर्धारित किया जा सकता है? malloc sizeof malloc calloc 38 / 100 What is the size of a boolean variable in C++? C++ में बूलियन वैरिएबल का आकार क्या है? 1 bit 1 byte 4 bytes 2 bytes 39 / 100 What are the actual parameters in C++? C++ में वास्तविक पैरामीटर क्या हैं? Parameters with which functions are called Parameters which are used in the definition of a function Variables other than passed parameters in a function Variables that are never used in the function 40 / 100 What does polymorphism in OOPs mean? OOPs में बहुरूपता का क्या अर्थ है? Concept of allowing overiding of functions Concept of hiding data Concept of keeping things in differnt modules/files Concept of wrapping things into a single unit 41 / 100 Where can the default parameter be placed by the user? उपयोगकर्ता द्वारा डिफ़ॉल्ट पैरामीटर कहाँ रखा जा सकता है? leftmost rightmost both leftmost & rightmost topmost 42 / 100 The switch statement is also called as? स्विच स्टेटमेंट को और क्या कहा जाता है? choosing structure selective structure certain structure bitwise structure 43 / 100 The data elements in the structure are also known as what? संरचना में डेटा तत्वों को किस नाम से भी जाना जाता है? objects members data objects & data 44 / 100 Which is used to keep the call by reference value as intact? कॉल बाय रेफरेंस वैल्यू को बरकरार रखने के लिए किसका उपयोग किया जाता है? static const absolute virtual 45 / 100 Which of the following is accessed by a member function of a class? किसी वर्ग के सदस्य फ़ंक्शन द्वारा निम्नलिखित में से किस तक पहुंच बनाई जाती है? The object of that class All members of a class The public part of a class The private part of a class 46 / 100 Pick the correct statement about references. सन्दर्भों के बारे में सही कथन चुनें। References can be assigned value NULL References once assigned cannot be changed to refer another variable Reference should not be initialized when created Reference is the same as pointers 47 / 100 Which operator is having the right to left associativity in the following? निम्नलिखित में किस ऑपरेटर के पास दाएँ से बाएँ संबद्धता है? Array subscripting Function call Addition and subtraction Type cast 48 / 100 ______________ have the return type void. ______________ में रिटर्न प्रकार शून्य है। all functions constructors destructors none of the mentioned 49 / 100 Which of the following supports the concept that reusability is a desirable feature of a language? निम्नलिखित में से कौन इस अवधारणा का समर्थन करता है कि पुन: प्रयोज्यता किसी भाषा की एक वांछनीय विशेषता है? It reduces the testing time It reduces maintenance cost It decreases the compilation time It reduced both testing and maintenance time 50 / 100 Implementation dependent aspects about an implementation can be found in ____ कार्यान्वयन के बारे में कार्यान्वयन पर निर्भर पहलुओं को ____ में पाया जा सकता है <implementation> <limits> <limit> <numeric> 51 / 100 Which of the following correctly declares an array? निम्नलिखित में से कौन सा एक ऐरे को सही ढंग से घोषित करता है? int array[10]; int array; array{10}; array array[10]; 52 / 100 Which of the following class allows to declare only one object of it? निम्नलिखित में से कौन सा वर्ग अपने केवल एक ऑब्जेक्ट को घोषित करने की अनुमति देता है? Abstract class Virtual class Singleton class Friend class 53 / 100 What is std in C++? C++ में std क्या है? std is a standard class in C++ std is a standard namespace in C++ std is a standard header file in C++ std is a standard file reading header in C++ 54 / 100 Which looping process is best used when the number of iterations is known? जब पुनरावृत्तियों की संख्या ज्ञात हो तो कौन सी लूपिंग प्रक्रिया का सबसे अच्छा उपयोग किया जाता है? for while do-while all looping processes require that the iterations be known 55 / 100 Where does the execution of the program starts? प्रोग्राम का निष्पादन कहाँ से प्रारंभ होता है? user-defined function main function void function else function 56 / 100 If the user did not supply the value, what value will it take? यदि उपयोगकर्ता ने मूल्य की आपूर्ति नहीं की, तो वह क्या मूल्य लेगा? default value rise an error both default value & rise an error error 57 / 100 Which of the following is correct in C++? C++ में निम्नलिखित में से कौन सा सही है? Classes cannot have protected data members Structures can have member functions Class members are public by default Structure members are private by default 58 / 100 When a language has the capability to produce new data type mean, it can be called as जब किसी भाषा में नए डेटा प्रकार का माध्य उत्पन्न करने की क्षमता होती है, तो इसे कहा जा सकता है overloaded extensible encapsulated reprehensible 59 / 100 What will happen when we use void in argument passing? जब हम तर्क पारित करने में शून्य का उपयोग करेंगे तो क्या होगा? It will not return value to its caller It will return value to its caller Maybe or may not be return any value to its caller It will return value with help of object 60 / 100 Which of the following is an exit-controlled loop? निम्नलिखित में से कौन सा निकास-नियंत्रित लूप है? for while do-while all of the mentioned 61 / 100 What constant defined in header returns the number of bits in a char? हेडर में परिभाषित कौन सा स्थिरांक एक चार में बिट्स की संख्या लौटाता है? CHAR_SIZE SIZE_CHAR BIT_CHAR CHAR_BIT 62 / 100 The declaration of the structure is also called as? संरचना की घोषणा को और क्या कहा जाता है? structure creator structure signifier structure specifier structure creator & signifier 63 / 100 Which of the following type is provided by C++ but not C? निम्नलिखित में से कौन सा प्रकार C++ द्वारा प्रदान किया जाता है लेकिन C द्वारा नहीं? int bool float double 64 / 100 What are mandatory parts in the function declaration? फ़ंक्शन घोषणा में अनिवार्य भाग क्या हैं? return type, function name return type, function name, parameters parameters, function name parameters, variables 65 / 100 Which of the following statement is not true about preprocessor directives? प्रीप्रोसेसर निर्देशों के बारे में निम्नलिखित में से कौन सा कथन सत्य नहीं है? These are lines read and processed by the preprocessor They do not produce any code by themselves These must be written on their own line They end with a semicolon 66 / 100 Identify the user-defined types from the following? निम्नलिखित में से उपयोगकर्ता-परिभाषित प्रकारों को पहचानें? enumeration classes both enumeration and classes int 67 / 100 Which of the following accesses a variable in structure *b? निम्नलिखित में से कौन संरचना *बी में एक चर तक पहुंचता है? b->var; b.var; b-var; b>var; 68 / 100 Which concept means the addition of new components to a program as it runs? किस अवधारणा का अर्थ किसी प्रोग्राम के चलते समय उसमें नए घटकों को जोड़ना है? Data hiding Dynamic binding Dynamic loading Dynamic typing 69 / 100 Which of the following is a valid floating-point literal? निम्नलिखित में से कौन सा वैध फ़्लोटिंग-पॉइंट शाब्दिक है? f287.333 F287.333 287.e2 287.3.e2 70 / 100 Which of three sizes of floating point types should be used when extended precision is required? विस्तारित परिशुद्धता की आवश्यकता होने पर फ्लोटिंग पॉइंट प्रकार के तीन आकारों में से किसका उपयोग किया जाना चाहिए? float double long double extended float 71 / 100 Which value can we not assign to reference? हम संदर्भ को कौन सा मान निर्दिष्ट नहीं कर सकते? integer floating unsigned null 72 / 100 What is the correct definition of an array? किसी सारणी की सही परिभाषा क्या है? An array is a series of elements of the same type in contiguous memory locations An array is a series of element An array is a series of elements of the same type placed in non-contiguous memory locations An array is an element of the different type 73 / 100 Which header file is used to pass unknown number of arguments to function? कार्य करने के लिए अज्ञात संख्या में तर्क पारित करने के लिए किस हेडर फ़ाइल का उपयोग किया जाता है? stdlib.h string.h stdarg.h stdio.h 74 / 100 A void pointer cannot point to which of these? एक शून्य सूचक इनमें से किसकी ओर इंगित नहीं कर सकता? methods in c++ class member in c++ methods & class member in c++ none of the mentioned 75 / 100 What we can’t do on a void pointer? हम शून्य सूचक पर क्या नहीं कर सकते? pointer arithmetic pointer functions pointer objects pointer functions & objects 76 / 100 What are the references in C++? C++ में संदर्भ क्या हैं? An alternative name for already existing variables A pointer to a variable A new type of variables A new type of constant variable 77 / 100 Where does the return statement returns the execution of the program? रिटर्न स्टेटमेंट प्रोग्राम के निष्पादन को कहां लौटाता है? main function caller function same function block function 78 / 100 The if..else statement can be replaced by which operator? यदि..अन्यथा कथन को किस ऑपरेटर द्वारा प्रतिस्थापित किया जा सकता है? Bitwise operator Conditional operator Multiplicative operator Addition operator 79 / 100 Which of the following is C++ equivalent for scanf()? निम्नलिखित में से कौन सा C++ scanf() के लिए समतुल्य है? cin cout print input 80 / 100 Which of the following syntax can be used to use a member of a namespace without including that namespace? किसी नेमस्पेस के सदस्य का उपयोग उस नेमस्पेस को शामिल किए बिना करने के लिए निम्नलिखित में से किस सिंटैक्स का उपयोग किया जा सकता है? namespace::member namespace->member namespace.member namespace~member 81 / 100 What is the size of a character literal in C and C++? C और C++ में अक्षरशः अक्षर का आकार क्या है? 4 and 1 1 and 4 1 and 1 4 and 4 82 / 100 Size of C++ objects are expressed in terms of multiples of the size of a ____ and the size of a char is _______ C++ ऑब्जेक्ट का आकार ____ के आकार के गुणकों के रूप में व्यक्त किया जाता है और एक चार का आकार _______ होता है char, 1 int, 1 float, 8 char, 4 83 / 100 Which of the following approach is used by C++? निम्नलिखित में से कौन सा दृष्टिकोण C++ द्वारा उपयोग किया जाता है? Top-down Bottom-up Left-right Right-left 84 / 100 What should be passed in parameters when function does not require any parameters? जब फ़ंक्शन को किसी पैरामीटर की आवश्यकता नहीं होती है तो पैरामीटर में क्या पारित किया जाना चाहिए? void blank space both void & blank space tab space 85 / 100 Which of the following operator has left to right associativity? निम्नलिखित में से किस ऑपरेटर में बाएँ से दाएँ साहचर्य है? Unary operator Logical not Array element access addressof 86 / 100 It is guaranteed that a ____ has at least 8 bits and a ____ has at least 16 bits. यह गारंटी है कि ____ में कम से कम 8 बिट्स हैं और ____ में कम से कम 16 बिट्स हैं। int, float char, int bool, char char, short 87 / 100 Which of the following will not return a value? निम्नलिखित में से कौन सा मान वापस नहीं करेगा? null void empty free 88 / 100 What is the other name of compile-time polymorphism? संकलन-समय बहुरूपता का दूसरा नाम क्या है? Static polymorphism Dynamic polymorphism Executing polymorphism Non-executing polymorphism 89 / 100 Which of the following is a static polymorphism mechanism? निम्नलिखित में से कौन सा एक स्थैतिक बहुरूपता तंत्र है? Function overloading Operator overloading Templates All of the mentioned 90 / 100 Which of the following cannot be a friend? निम्नलिखित में से कौन मित्र नहीं हो सकता? Function Class Object Operator function 91 / 100 In which of the following we cannot overload the function? निम्नलिखित में से किसमें हम फ़ंक्शन को ओवरलोड नहीं कर सकते? return function caller called function main function 92 / 100 What does ‘\a’ escape code represent? '\a' एस्केप कोड क्या दर्शाता है? alert backslash tab form feed 93 / 100 Which of the following belongs to the set of character types? निम्नलिखित में से कौन सा चरित्र प्रकारों के समूह से संबंधित है? char wchar_t only a both wchar_t and char 94 / 100 Which value will it take when both user and default values are given? जब उपयोगकर्ता और डिफ़ॉल्ट दोनों मान दिए जाएंगे तो यह कौन सा मान लेगा? user value default value custom value defined value 95 / 100 When will we use the function overloading? हम फ़ंक्शन ओवरलोडिंग का उपयोग कब करेंगे? same function name but different number of arguments different function name but same number of arguments same function name but same number of arguments different function name but different number of arguments 96 / 100 Which type is best suited to represent the logical values? तार्किक मानों को दर्शाने के लिए कौन सा प्रकार सबसे उपयुक्त है? integer boolean character float 97 / 100 The pointer can point to any variable that is not declared with which of these? सूचक किसी भी वेरिएबल को इंगित कर सकता है जो इनमें से किसके साथ घोषित नहीं किया गया है? const volatile both const & volatile static 98 / 100 Which of the following accesses the seventh element stored in array? निम्नलिखित में से कौन ऐरे में संग्रहीत सातवें तत्व तक पहुँचता है? array[6]; array[7]; array(7); array; 99 / 100 Can two functions declare variables(non static) with the same name? क्या दो फ़ंक्शन एक ही नाम से वेरिएबल (गैर स्थैतिक) घोषित कर सकते हैं? No Yes Yes, but not a very efficient way to write programs No, it gives a runtime error 100 / 100 What is the maximum number of arguments or parameters that can be present in one function call? एक फ़ंक्शन कॉल में अधिकतम कितने तर्क या पैरामीटर मौजूद हो सकते हैं? 64 256 255 16 Your score is LinkedIn Facebook Twitter VKontakte 0% Facebook WhatsApp Twitter