Explore topic-wise MCQs in Technical Programming.

This section includes 565 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.

301.

What is the action of strcat() function

A. compare two strings
B. concatenates two strings
C. finds the length of a string
D. copies one string over another
Answer» C. finds the length of a string
302.

What is the scope of extern class specifier?

A. Within block
B. Within Program
C. Global Multiple files
D. None of the above
Answer» D. None of the above
303.

What is the inital value of extern storage class specifier?

A. 0
B. Null
C. Garbage
D. Infinite
Answer» B. Null
304.

What is the inital value of register storage class specifier?

A. 0
B. Null
C. Garbage
D. Infinite
Answer» D. Infinite
305.

What is the action of strcmp() function

A. compare two strings
B. copies one string over another
C. finds the length of a string
D. cut one string over another
Answer» B. copies one string over another
306.

Guess the output of the following program ?

A. 100,300,300
B. 100,200,400
C. 100,200,300
D. 100,300,400
Answer» C. 100,200,300
307.

Find output of the following program ?

A. Greater
B. 100
C. Smaller
D. Compile Error
Answer» B. 100
308.

How many times below for loop will be executed ?

A. 0 times
B. Infinite times
C. 1 times
D. 10 times
Answer» C. 1 times
309.

Point out error in the following code -

A. Error: R-Value Required
B. Error: Expression syntax
C. Error: L-Value Required
D. Error: Statement missing Semicolon
Answer» D. Error: Statement missing Semicolon
310.

How many times loop will get executed ?

A. 1 Time
B. 255 Times
C. Infinite Times
D. 256 Times
Answer» E.
311.

Predict the output of the program ?

A. ABC
B. ABCFalse
C. True
D. ABCTrue
Answer» E.
312.

What will be printed if we execute following program ?

A. False
B. True
C. True False
D. None of these
Answer» B. True
313.

Guess the output of the program ?

A. 1,1,2
B. 2,2,2
C. 0, 2, 2
D. 0,1,2
Answer» D. 0,1,2
314.

Guess the output of the following program :

A. x and y are equal
B. Compile Error
C. Run Time Error
D. x and y are not equal
Answer» B. Compile Error
315.

Following Operating System was Created by Dennis Ritchie

A. Ubuntu
B. Linux
C. UNIX
D. Android
Answer» D. Android
316.

Determine Output:

A. 1 1 1
B. 0 0 0
C. garbage values
D. Error
Answer» D. Error
317.

Dennis Ritchie Born in ________ city ?

A. Santa Ana
B. Bronxville , New York
C. Dallas
D. Washington
Answer» C. Dallas
318.

The errors that can be pointed out by the compiler are?

A. syntax errors
B. semantic error
C. logical error
D. none of the above
Answer» B. semantic error
319.

Identify the wrong Statement?

A. #define /* symbolic constant */ Max 100
B. int /*declaration*/ a,b;
C. char c1,c2;
D. #define MAX 25;
Answer» E.
320.

Which of the following is not a data type in c

A. Primary data type
B. Secondary data type
C. Derived data type
D. User defined data type
Answer» C. Derived data type
321.

C can be used on?

A. Only MS-Dos operating System
B. Only Linux operating system
C. Only Windows operating system
D. All of the above
Answer» E.
322.

Dennis Ritchie Completed his graduation from _________ University ?

A. MIT University
B. Stanford University
C. Harvard University
D. Cembridge University
Answer» D. Cembridge University
323.

Identify the wrong statement ?

A. # define is a preprocessor facility.
B. # define aids in modifying a constant value throughout the program.
C. # define uses a statement terminator.
D. # define improves the readability of the program.
Answer» D. # define improves the readability of the program.
324.

Which of these is not an example for IDE in C?

A. Turbo
B. Pycharm
C. Code::Blocks
D. Borland
Answer» C. Code::Blocks
325.

Bit-fields will he accommodated in a word

A. from left to right
B. from right to left
C. in a way that depends on the implementation
D. none of the above
Answer» D. none of the above
326.

If the word size is 16 bit, then ~0xc5 will be

A. 0x3a
B. 0xff3a
C. 0x5c
D. none of the above
Answer» C. 0x5c
327.

Which year C language is developed?

A. 1970
B. 1971
C. 1972
D. 1973
Answer» D. 1973
328.

Identify the separator(s) in C?

A. white space character
B. Comments
C. Semicolon
D. both a and b
Answer» E.
329.

If ASCII value of 'x' is 120, then what is the value of the H, ifH = ('x' – 'w' ) / 3;

A. 1
B. 2
C. 3
D. 0
Answer» E.
330.

The number of possible values of m, such that m & 0x3f equals 0x23 is

A. 1
B. 2
C. 3
D. 4
Answer» E.
331.

Which is not a character of C?

A. $
B. ^
C. -
D. |
Answer» B. ^
332.

Which of the following comments are true ?

A. C provides no input-output and file access  features
B. C provides no features to manipulate composite objects
C. C borrowed most of its ideas from BCPL
D. All of the above
Answer» E.
333.

Dennis Ritchie Was Creator of Famous Programming Language

A. BCPL
B. C++ Programming
C. C Programming
D. BASIC
Answer» D. BASIC
334.

C Language was developed at ?

A. AT & T Bell Laboratory
B. MIT University
C. Harvard University
D. Stanford Lab
Answer» B. MIT University
335.

If a=14, b=4 then a/b =

A. 2
B. 3
C. 4
D. 5
Answer» C. 4
336.

Bit field

A. is a field having many sub-fields
B. is a structure declaring the sizes of the members in terms of bits
C. is a member of a structure whose size is specified in terms of bits
D. none of the above
Answer» D. none of the above
337.

In a certain machine, the sum of an integer and its 1's complement is 226 - 1. Then sizeof intl. in bits, will be

A. 16
B. 32
C. unpredictable
D. none of above
Answer» E.
338.

Point out the error in the program (in Turbo-C).

A. Error: unknown max in declaration/Constant expression required
B. Error: invalid array string
C. None of above
D. No error. It prints A A
Answer» B. Error: invalid array string
339.

Point out the error in the program.

A. Error: RValue required
B. Error: Lvalue required
C. Error: fun() returns a pointer const character which cannot be modified
D. No error
Answer» D. No error
340.

The _________ is a computer program that translates the source code into corresponding object code

A. Compiler
B. Assembler
C. COBOL
D. Interpreter
Answer» B. Assembler
341.

"C" is a

A. High Level Language
B. Low Level Language
C. High Level Language with some low level features
D. Low level language with some high level features
Answer» D. Low level language with some high level features
342.

Which of the following comments about the “++” operator are correct?

A. It is a unary operator
B. It cannot be applied to an expression.
C. It associates from the right.
D. All of the above
Answer» E.
343.

Pick the operator that associate from the right

A. ?:
B. +=
C.
D. All of the above
Answer» E.
344.

What is Full Name of Dennis Ritchie ?

A. Dennis George Ritchie
B. Dennis Stephen Ritchie
C. Dennis Bill Ritchie
D. Dennis MacAlistair Ritchie
Answer» E.
345.

Length of the string “Correct” is

A. 7
B. 8
C. 6
D. implementation dependent
Answer» B. 8
346.

The “const” feature can be applied to

A. an identifier
B. an array
C. an array argument
D. All of the above
Answer» E.
347.

A translator which reads an entire program written in high level and converts it into machine language code is?

A. Assembler
B. Translator
C. Compiler
D. System software
Answer» D. System software
348.

"My salary was increased by 15%" Select the statement, which will EXACTLY reproduce the line of text above.

A. printf("My salary was increased by 15/%!");
B. printf("My salary was increased by 15%!");
C. printf("My salary was increased by 15'%'!");
D. printf("My salary was increased by 15%%!");
Answer» E.
349.

Which function converts a string of digits into its numeric equivalent

A. atan()
B. atoi()
C. calloc()
D. strcat()
Answer» C. calloc()
350.

In the statement template ,

A. T is a class
B. T is a scalar variable
C. Either (a) or (b)
D. none of these
Answer» B. T is a scalar variable