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.

251.

An Identifier may contain.?

A. Letters a-z, A-Z in Basic character set.
B. Underscore _ symbol
C. Numbers 0 to 9
D. All the above
Answer» E.
252.

What is an Identifier in C Language.?

A. Name of a Function or Variable
B. Name of a Macros
C. Name of Structure or Union
D. All the above.
Answer» E.
253.

Choose the correct answer.?

A. Digraph <: represents [
B. Digraph <: represents ]
C. Digraph <: represents ]
D. Digraph <: represents {
Answer» B. Digraph <: represents ]
254.

Single Line Comment // is also called.?

A. C++ Style Comment
B. Java Style Comment
C. PHP Style Comment
D. All the above
Answer» E.
255.

Correct way of commenting a single line is.?

A. /*printf("Hello C..");
B. //printf("Hello C..");
C. /*printf("Hello C..");
D. /printf("Hello C..");/
Answer» C. /*printf("Hello C..");
256.

Choose correct answer..

A. #include is a Preprocessor Directive
B. <stdio.h> is a header file with predefined functions like printf, scanf etc
C. #include
D. All the above
Answer» E.
257.

A C program is a combination of.?

A. Statements
B. Functions
C. Variables
D. All of the above
Answer» E.
258.

C language is used in the development of .?

A. Databases
B. Graphic applications
C. Word Processors
D. All of the above
Answer» E.
259.

C language was invented in the year.?

A. 1999
B. 1978
C. 1972
D. 1990
Answer» D. 1990
260.

C language was invented to develop which Operating System.?

A. Android
B. Linux
C. Ubuntu
D. Unix
Answer» E.
261.

BCPL Language is also called..?

A. C Language
B. B Language
C. D Language
D. None
Answer» E.
262.

C language was invented in which laboratories.?

A. Uniliver Labs
B. IBM Labs
C. AT&T Bell Labs
D. Verizon Labs
Answer» D. Verizon Labs
263.

What are the new features of C11 or ISO IEC 9899 2011 standard.?

A. Type generic Macros, Static Assertions
B. Multi Threading, Anonymous Unions, quick_exit
C. Bounds Checking Interfaces, Anonymous Strurctures
D. All
Answer» E.
264.

What is the present C Language Standard.?

A. C99 ISO/IEC 9899:1999
B. C11 ISO/IEC 9899:2011
C. C05 ISO/IEC 9899:2005
D. C10 ISO/IEC 9899:2010
Answer» C. C05 ISO/IEC 9899:2005
265.

C is _______ type of programming language.?

A. Object Oriented
B. Procedural
C. Bit level language
D. Functional
Answer» C. Bit level language
266.

Which program outputs "Hello World.." .?

A. main()
B. main()
C. main()
D. main()
Answer» C. main()
267.

High level language is a .?

A. Human readable like language.
B. language with small program size.
C. language with big program size.
D. language which is difficult to understand and not human readable.
Answer» B. language with small program size.
268.

Low level language is .?

A. Human readable like language.
B. language with big program size.
C. language with small program size.
D. Difficult to understand and readability is questionable.
Answer» E.
269.

C is a which level language.?

A. Low Level
B. High Level
C. Low + High
D. None
Answer» C. Low + High
270.

C Language is a successor to which language.?

A. FORTRAN
B. D Language
C. BASIC
D. B Language
Answer» E.
271.

Who invented C Language.?

A. Charles Babbage
B. Grahambel
C. Dennis Ritchie
D. Steve Jobs
Answer» D. Steve Jobs
272.

What will be output for the folowing code?

A. 2 1
B. 0 0
C. 3 2
D. Compilation error
Answer» C. 3 2
273.

Which of the following function is used for sets the position to a desired point in the file

A. putc()
B. putw()
C. fseek()
D. getw()
Answer» D. getw()
274.

Which of the following are not the keywords in C?

A. printf
B. main
C. IF
D. none of above
Answer» D. none of above
275.

In what kind of structure for strings, one can easily insert, delete, concatenate and rearrange sustrings?

A. Fixed length storage structure
B. Variable length storage with fixed maximum
C. Linked list storage
D. Relocatable structure
Answer» D. Relocatable structure
276.

A text is made up of the characters a, b, c, d, e each occurring with the probability 0.12, 0.4, 0.15,0.08 and .25 respectively. The optimal coding tech-nique will have the average length of

A. 2.15
B. 3.78
C. 2.78
D. 1.78
Answer» B. 3.78
277.

First version of C Programming language is ____ .

A. K&R
B. C89
C. ANSI
D. R&K
Answer» B. C89
278.

Choose the correct comments In a bit-field

A. a field can he un-named
B. a field can be of width 0
C. if a field is un-named, its width must not be zero
D. a field must have a name
Answer» C. if a field is un-named, its width must not be zero
279.

The process of transforming one bit pattern into another by bit-wise operations is called

A. masking
B. pruning
C. biting
D. chopping
Answer» B. pruning
280.

If space occupied by two strings s1 and s2 in 'C' are respectively m and n, then space occupied by string obtained by concatenating s1 and s2 is always

A. Less than m+n
B. Equal to m+n
C. Greater than m+n
D. Greater them m*n
Answer» B. Equal to m+n
281.

An object oriented language is used because

A. own data types can be created
B. an object oriented program can be taught to correct its own erros
C. it is easier to conceptualize an object
D. both (a) and (c)
Answer» E.
282.

Choose the best answer. Storage class defines

A. the datatype
B. the scope
C. the scope and permanence
D. the scope. permanence and datatype
Answer» D. the scope. permanence and datatype
283.

a << 1 is equivalent to

A. multiplying a by 2
B. dividing a by 2
C. adding 2 to a
D. none of the above
Answer» B. dividing a by 2
284.

Which of the following function is used for sets the position to the beginning of the file

A. putw()
B. getw()
C. setw()
D. rewind()
Answer» E.
285.

Where does the execution of every C program starts?

A. Every C program starts in the main () function.
B. Every C program starts in the begin ( ) function.
C. Every C program starts in the initialize ( ) function.
D. Every C program starts in the start ( ) function.
Answer» B. Every C program starts in the begin ( ) function.
286.

Which of the following types of programs would require the program data to be sorted in order for the programs to work correctly ?

A. Programs that display department names in alphabetical order
B. Programs that display sales amounts in numerical order
C. Programs that display subtotals in reports
D. All of these
Answer» B. Programs that display sales amounts in numerical order
287.

How many bits are absolutely necessary to store an ASCII character ?

A. 7
B. 8
C. 16
D. 15
Answer» B. 8
288.

How many bits are absolutely necessary to store an ASCII character?

A. 7
B. 8
C. 16
D. 15
Answer» B. 8
289.

Which of the following statement are correct?

A. Only I is correct
B. Only II is correct
C. Both I & II are correct
D. Both I & II are incorrect
Answer» E.
290.

Which is true in case of ANSI C?

A. Comments are represented in /* and */
B. Nested comments are not allowed
C. Comments are not allowed within a string constant
D. Nested comments are allowed
Answer» C. Comments are not allowed within a string constant
291.

Choose the correct statements.

A. 'x' is same as "x"
B. length of the string "x" is two
C. Unless otherwise specified, the first name in an enum has the value 1
D. None of the above
Answer» E.
292.

A program that converts a high level language program to a set of instructions that can run on a computer is called a

A. compiler
B. debugger
C. editor
D. none of the above
Answer» B. debugger
293.

A program which translates a high level language program into a machine language program is called

A. Compiler
B. Interpreter
C. both a and b
D. none of the above
Answer» D. none of the above
294.

Which one is a collection of one or more variables, possibly of different types, grouped together under a single name for convenient handling

A. Pointer
B. Matrix
C. Array
D. Structure
Answer» E.
295.

The mapping from assembly language instructions into machine language instructions is

A. many-one
B. many-many
C. one-one
D. one-many
Answer» D. one-many
296.

If following program (myprog)is run from the command line as myprog friday tuesday sunday then what would be the output?

A. m
B. f
C. myprog
D. None of these
Answer» C. myprog
297.

The  following program fragment

A. prints the string 8 8 8
B. prints the null string
C. prints the string 888
D. none of above
Answer» D. none of above
298.

Assuming a short is two bytes long, what will be printed by the below code?

A. 6
B. 7
C. 24
D. It will not compile because not enough initializers are given
Answer» D. It will not compile because not enough initializers are given
299.

Find the output of the following program.

A. 0289
B. 1289
C. 0713
D. Syntax error
Answer» E.
300.

What number would be shown on the screen after the following statements of C are executed?

A. 5
B. 6
C. 7
D. 8
Answer» C. 7