Programming Concepts and Logics | Check Your Level | MCQ April 3, 2025April 17, 2024 by jaminrai Programming Concepts & Logics This MCQ helps to check levels of:your understanding on programming languagesunderadatnd about compiler, interpreter and Assemblerdifferent High level languagesdifferent types of errors in programmingcontrol structureProgram design toolstypes of dataI/O function, operator and many more 1 / 76 What is the maximum length of a C string? 32 characters 64 characters 256 characters None of these options are correct 2 / 76 Which component is not required to define a simple loop? initialization condition break statement counter statement 3 / 76 Which type of type specifier is used to hold integer type data? %c %d %f %e 4 / 76 Which function is used to copy string? strcp strcpy strcat strcopy 5 / 76 Operator % in C language is called? Percentage operator Quotient operator Division Modulus 6 / 76 Which of the following character is used to terminate an instruction in C Program? Comma Colon Semicolon Period 7 / 76 The ____ statement is used in the loops to skip a part of the loop and continue the next cycle of the loop. Break Switch If Continue 8 / 76 Which of the following format specifier is used for string data type? f g d s 9 / 76 Which of the following symbol is not a valid keyword break else if short auto 10 / 76 Which one is input function? putchar scanf puts printf 11 / 76 Which one is output function? getchar printf gets scanf 12 / 76 Every program in C has at least one function which is _________ main void None of these sum 13 / 76 Which of the following is interpreted language? BASIC Visual Basic C Language C++ Language 14 / 76 Which of the following is not a type of control structure? Looping Sequence Selection Condition 15 / 76 How much memory should require holding long integer data in Computer? 8 1 2 4 16 / 76 Which of the following statement is not true? Library function are defined outside header files #include helps to necessary headers files to the program #include and #define are commonly used preprocessors Preprocessor directive is a special type of program that helps to execute codes before passes through compiler. 17 / 76 Which function is used to display a string? putchar printf scanf gets 18 / 76 If you have to make decision based on multiple choices, which of the following is best suited? All of these If else If If else if 19 / 76 Which pair of functions below are used for single character I/O scanf() and printf() none of these input() and output() getchar() and putchar() 20 / 76 Which type of constant is defined by using #define? escape sequence symbolic character integer constant 21 / 76 What c function copies the contents of one string to another? strrev() None strcmp() strcpy() 22 / 76 This of the following statement is not true A compiler is more efficient than interpreter A compiler is faster than interpreter A compiler does not create object code A compiler finds errors after compilation process 23 / 76 What will be the value of y if x=8? Y=(x>6?4:6) 4 0 6 compiler error 24 / 76 C program are converted into machine language with the help of A compiler An Editor Interpreter An operating system 25 / 76 A string constant in C is terminated by "" 'O' '