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 of the following statement is not true? C is powerful and portable programming language C is a general purpose low level programming language C is structural programming language. C is internationally standardized programming language 2 / 76 What is the output of expression : 7%3 3 2 2.5 1 3 / 76 Which escape character can be used to begin a new line in c? b a n m 4 / 76 The continue statement cannot be used with ____ Do while For Switch While 5 / 76 C is _____ Language? Machine Level Middle Level Low Level High Level 6 / 76 What is the use of sqrt() library function? To find square root of given number. To find square root of a circle. To find roots of equations To find square of given number 7 / 76 Which one is output function? gets scanf printf getchar 8 / 76 Which is the right way to declare constant in C? const int var = 10; All of these int const var = 10; int const var=10; 9 / 76 Operator % in C language is called? Percentage operator Modulus Division Quotient operator 10 / 76 Which of the following character is used to terminate an instruction in C Program? Semicolon Comma Colon Period 11 / 76 C Language developed at _____? Sun Microsystem in 1973 Cambridge University in 1972 AT & T's Bell Laboratories of French in 1972 AT & T's Bell Laboratories of USA in 1972 12 / 76 Which of the following is not basic data types in C language? char int float string 13 / 76 Which loop executes at least once if while For do while 14 / 76 Which statement is not true? The size of an array is static. An array is collection of dissimilar type of data items. The data items of array are stored in contiguous memory locations. An array is collection of similar type of data items. 15 / 76 The operator && is an example of ____ operator. Rational Increment Assignment Logical 16 / 76 Which of the following statement is not true? Unicode is 16 bits codes to represent 65536 different characters, numbers, symbols,, etc. BCD code is represented in terms of 5 bits to represent a single decimal digit. ACSII is 8 bit codes to represents 256 characters or symbols EBCD is 8 bits codes to represent 256 characters or symbols in IBM mainframe 17 / 76 Which of the following statement is correct? strcmp(s1,s2) returns 1 if s1= =s2 strcmp(s1,s2) returns 0 if s1= =s2 strcmp(s1,s2) returns a number less than 0 if s1>s2 strcmp(s1,s2) returns a number greater than 0 if s1<s2 18 / 76 Which of the following is not an arithmetic operator? % & + * 19 / 76 A labeled statement consist of an identifier followed by = , ; : 20 / 76 C program are converted into machine language with the help of An operating system An Editor A compiler Interpreter 21 / 76 A C string element is always stored in? None of these options Sequential memory location Random access location Alternate memory location 22 / 76 Which is the unformatted input function to accept a multiword input in c language? gets() scanf() getc() finds() 23 / 76 Null character is represented by 2 n O 24 / 76 Number of keywords present in C languages is? 34 32 64 62 25 / 76 The operator & is used for Logical OR Bitwise AND Logical AND Bitwise OR 26 / 76 Which of the following symbol is not a valid keyword auto short break else if 27 / 76 Which among the following is an unconditional control structure? if-else goto do-while for 28 / 76 The activity of removing an error in the program is called _____ Entering Editing Compiling Debugging 29 / 76 Int len=strlen("Jamin Rai"); printf(%d",len);What would be the value of len printed? 9 10 8 Depends on compiler 30 / 76 This C function copies the contents of the source string at the end of the target string? both Strcat() & copycat() none of the options copycat() strcat() 31 / 76 Which of the following symbol is not a valid character set? < > @ # 32 / 76 Which type of type specifier is used to hold integer type data? %e %f %c %d 33 / 76 Which operators are known as ternary operators? None of these <,;; ::? ?: 34 / 76 Which type of constant is defined by using #define? escape sequence symbolic integer constant character 35 / 76 What is the work of break keyword? None of these Restart execution of program Exit form loop or switch statement Halt execution of program 36 / 76 Which operator is used to find remainder of two integers? ! MOD % 37 / 76 Which of the following is not a loop used in C Do while loop While loop For each loop For loop 38 / 76 Which of the following is not true? A flowchart can solve complex real-world problem Flowchart is a pictorial form of algorithm that describes the procedure to solve a problem Pseudo code is expressed in terms of English like structure and mathematical expression. Algorithm is a finite sequence of instructions for solving a problem 39 / 76 How long the following loop runs? for(x=1;x=3;x++) One time Three times Forever Never 40 / 76 ++ Operator used within loops increment the value of variable by 10 2 1 Depends on compiler 41 / 76 This of the following statement is not true A compiler finds errors after compilation process A compiler is more efficient than interpreter A compiler does not create object code A compiler is faster than interpreter 42 / 76 Who is the father of C programming? Dennis Ritchie E.F. Codd Von Neuman James A. Gosling 43 / 76 Which of the following symbol is used to denote a pre-processor statement? ! ; ~ # 44 / 76 Which component is not required in a simple if else statement? counter statement true statement false statement condition 45 / 76 Which of the following operator reverse the result of expression its operators on? || ! && All of the options are correct 46 / 76 Which of the following statement is not true? Library function are defined outside header files Preprocessor directive is a special type of program that helps to execute codes before passes through compiler. #include helps to necessary headers files to the program #include and #define are commonly used preprocessors 47 / 76 Which header file is essential for using strcmp() finction? strings.h text.h string.h strcmp.h 48 / 76 Which of the following is format specification for printing string in printf() %f %c %d %s 49 / 76 Which of the following is not a type of control structure? Condition Looping Selection Sequence 50 / 76 The Expression : a+=4 means a+4=a a=a+4 a=4 a=4+4 51 / 76 What c function copies the contents of one string to another? strcpy() strrev() None strcmp() 52 / 76 Which pair of functions below are used for single character I/O getchar() and putchar() input() and output() scanf() and printf() none of these 53 / 76 Which of the following is interpreted language? BASIC C Language C++ Language Visual Basic 54 / 76 Every program in C has at least one function which is _________ void main sum None of these 55 / 76 Array elements are always store in ________ memory location Non of these Sequential Sequential and Random Random 56 / 76 A string in C is None of these Both 1-D and 2-D array of character 1-D Array of character 2-D Array of Character 57 / 76 The process of translating a source program into machine language is a function of: Translator None of these Assembler Compiler 58 / 76 Which of the following symbol is valid identifier? 1_x X_1 x.1 1.x 59 / 76 Which function is used to copy string? strcpy strcat strcopy strcp 60 / 76 Which of the following statement is not true?? A syntax error is easy to find than logical error. A run time errors occur during the running time of the software A logical error is easily detected by compiler. Meaningless instructions make the logical errors 61 / 76 Which of the following format specifier is used for string data type? d s g f 62 / 76 Which function is used to display a string? gets printf scanf putchar 63 / 76 If you have to make decision based on multiple choices, which of the following is best suited? If All of these If else if If else 64 / 76 The ____ statement is used in the loops to skip a part of the loop and continue the next cycle of the loop. If Continue Switch Break 65 / 76 Which one is input function? puts putchar printf scanf 66 / 76 What is program? All of the options are correct A finite set of instruction to computer to perform specific task A finite set of subprograms to computer to perform specific task A finite set of functions to computer to perform specific task 67 / 76 How much memory should require holding long integer data in Computer? 2 8 4 1 68 / 76 What is the maximum length of a C string? 32 characters None of these options are correct 256 characters 64 characters 69 / 76 _____ is a picture in which the flows of computational paths are depicted. Algorithm Flowchart Code Program 70 / 76 Among unary operation which operator represents increment? -- ! = ++ 71 / 76 Which of the following language is not a type of third generation language? C Lanugage Java BASIC FORTAN 72 / 76 Which keyword can be used for coming out of recursion? Both Return and Break Return Exit Break 73 / 76 Which of the following is not a type of branching statement? Switch case If else if If else Do while 74 / 76 A string constant in C is terminated by " "" 'O' '