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 Which one is input function? putchar scanf printf puts 2 / 76 Which of the following symbol is not a valid keyword else if auto short break 3 / 76 Int len=strlen("Jamin Rai"); printf(%d",len);What would be the value of len printed? 9 10 8 Depends on compiler 4 / 76 Array elements are always store in ________ memory location Sequential Sequential and Random Random Non of these 5 / 76 Which type of constant is defined by using #define? character symbolic integer constant escape sequence 6 / 76 Which pair of functions below are used for single character I/O input() and output() scanf() and printf() none of these getchar() and putchar() 7 / 76 What is the output of expression : 7%3 2 2.5 1 3 8 / 76 A string in C is Both 1-D and 2-D array of character 1-D Array of character 2-D Array of Character None of these 9 / 76 The ____ statement is used in the loops to skip a part of the loop and continue the next cycle of the loop. Switch Break If Continue 10 / 76 What is the work of break keyword? None of these Exit form loop or switch statement Halt execution of program Restart execution of program 11 / 76 Which one is output function? scanf gets printf getchar 12 / 76 C is _____ Language? Low Level Middle Level High Level Machine Level 13 / 76 Which of the following is not a type of branching statement? Do while If else if Switch case If else 14 / 76 Which is the right way to declare constant in C? int const var = 10; int const var=10; const int var = 10; All of these 15 / 76 Which type of type specifier is used to hold integer type data? %c %e %f %d 16 / 76 Which of the following is not an arithmetic operator? & * + % 17 / 76 Which of the following statement is not true?? Meaningless instructions make the logical errors A syntax error is easy to find than logical error. A logical error is easily detected by compiler. A run time errors occur during the running time of the software 18 / 76 The Expression : a+=4 means a=4 a=a+4 a+4=a a=4+4 19 / 76 How long the following loop runs? for(x=1;x=3;x++) Three times Forever One time Never 20 / 76 C program are converted into machine language with the help of An Editor Interpreter A compiler An operating system 21 / 76 Among unary operation which operator represents increment? ! ++ = -- 22 / 76 A C string element is always stored in? Alternate memory location Random access location Sequential memory location None of these options 23 / 76 Which among the following is an unconditional control structure? for goto if-else do-while 24 / 76 The process of translating a source program into machine language is a function of: None of these Assembler Translator Compiler 25 / 76 C Language developed at _____? AT & T's Bell Laboratories of French in 1972 Cambridge University in 1972 AT & T's Bell Laboratories of USA in 1972 Sun Microsystem in 1973 26 / 76 Which header file is essential for using strcmp() finction? strings.h text.h strcmp.h string.h 27 / 76 What is the maximum length of a C string? None of these options are correct 64 characters 256 characters 32 characters 28 / 76 Which of the following is not true? Pseudo code is expressed in terms of English like structure and mathematical expression. Flowchart is a pictorial form of algorithm that describes the procedure to solve a problem A flowchart can solve complex real-world problem Algorithm is a finite sequence of instructions for solving a problem 29 / 76 A string constant in C is terminated by "" '