Explore topic-wise MCQs in Testing Subject.

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

1.

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

A. 2
B. 4
C. 5
D. 6
Answer» B. 4
2.

The most significant hit will be lost in which of the following operations?

A. >>
B. complementation
C. <<
D. none of the above
Answer» B. complementation
3.

An _______ is a fixed size sequence collection of elements of the same data type

A. integer
B. function
C. array
D. pointer
Answer» D. pointer
4.

Continue statement is allowed inside the switch case statement ?

A. No
B. Yes
C. Depends on the Compiler
D. None of the above
Answer» B. Yes
5.

If the bit pattern corresponding to a signed integer is shifted to the right then

A. vacant bit will be filled by the sign bit
B. vacant bit will be filled by 0
C. the outcome is implementation dependent
D. none of the above
Answer» D. none of the above
6.

If space occupied by a null terminated string "S1" and "S2"in "C" are respectively "m" and "n",the space occupied by the string obtained by concentrating "S₁"and "S₂"is always

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

The language C is

A. an assembly language
B. a third generation high level language
C. a machine language
D. none of the above
Answer» C. a machine language
8.

Which of these is true about embedded C?

A. Only i & ii
B. Only i & iii
C. Only ii & ii
D. All of the above
Answer» E.
9.

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
10.

Identify the correct statement?

A. The variable names VOLUME and volume are identical
B. The variable names sun and sun are identical
C. Variables are not declared before use
D. Variable may he absent in a declaration.
Answer» E.
11.

Length of the string " correct " is

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

What is C language?

A. C language is a structure/procedure oriented
B. C language is a middle level programming language
C. C language was invented for implementing UNIX operating system
D. All of the above
Answer» E.
13.

In statement '100 LET N1 = LEN(AINR )' of BASIC language, built-in function is

A. LEN
B. LET
C. whole statement
D. numerical values
Answer» B. LET
14.

In line '500 IF NAMEINR ="***" THEN Average= Total Mark/N' of BASIC program, Total Mark and N are considered as

A. set of integers
B. positive odd numbers
C. positive even numbers
D. negative odd numbers
Answer» B. positive odd numbers
15.

In line '400 IF NAMEINR ="***" THEN Average= Total Mark/N' of BASIC program, AVERAGE is considered as

A. real numbers
B. negative integers
C. rational variables
D. irrational numbers
Answer» B. negative integers
16.

Function which is placed between FOR statements and other repeated statements is classified as

A. FOR loop
B. DO function
C. GO function
D. WHILE function
Answer» C. GO function
17.

General term use for self-contained small set of instructions is referred as

A. routine
B. function
C. procedure
D. subroutine
Answer» B. function
18.

In BASIC language, '150 LET Area=Width*Length' , optional word is

A. LET
B. area
C. width
D. length
Answer» B. area
19.

Computer language based on machine code is classified as

A. ordinary programming language
B. low level programming language
C. high level programming language
D. advanced level programming language
Answer» C. high level programming language
20.

A special quantity whose value does not change is classified as

A. constant
B. mantissa
C. exponent
D. variables
Answer» B. mantissa
21.

A program which translates high level program into machine code is classified as

A. compiler
B. translator
C. instruction analyst
D. translating analyst
Answer» B. translator
22.

Statement in Comal language 'IF age >=18 THEN PRINT "Yes" ELSE PRINT "No" is an example of

A. if else statement
B. if then statement
C. else one statement
D. if then else statement
Answer» E.
23.

C Programming was created in Year _______ .

A. 1976
B. 1972
C. 1967
D. 1980
Answer» C. 1967
24.

Dennis Was Author of Famous Programming Book _________ .

A. C Programming and Techniques
B. Thinking in C
C. The C Programming Language
D. Learn C Step By Step
Answer» D. Learn C Step By Step
25.

C Programming was created at ______ by Dennis Ritchie.

A. Stanford Lab
B. Haward University
C. AT&T Bell Laboratory
D. L&T Laboratory
Answer» D. L&T Laboratory
26.

By Nationality , Dennis Ritchie Was _________ ?

A. British
B. Russian
C. Canadian
D. American
Answer» E.
27.

Who is called as Father of C Programming Language ?

A. Steve Jobs
B. Dennis Ritchie
C. Ken Thompson
D. Bill Gates
Answer» C. Ken Thompson
28.

Dennis Ritchie Born On ___________ ?

A. September 9, 1941
B. September 9, 1958
C. September 9, 1951
D. September 9, 1947
Answer» B. September 9, 1958
29.

Ritchie and Brian Kernighan jointly carried out the development of C and that version is ________ .

A. K&R C
B. ANSI C
C. C99
D. R&K C
Answer» B. ANSI C
30.

Who was Creator of B Language , which inspired Dennis Ritchie to create Strong Procedural Language called C ?

A. Ken Thompson
B. Thomas E. Kurtz
C. John W. Backus
D. Brian Kernighan
Answer» B. Thomas E. Kurtz
31.

Which Committee standardize C Programming Language ?

A. ANSI
B. W3C
C. TRAI
D. ISO
Answer» B. W3C
32.

Many features of C were derived from an earlier language called _____.

A. B
B. PASCAL
C. BASIC
D. FORTRAN
Answer» B. PASCAL
33.

Second component in algorithms is classified as

A. repetition
B. constant selection
C. variable selection
D. variable sequence
Answer» B. constant selection
34.

In line "300 INPUT NUM: PRINT 4.2*NUM*NUM+17" of a BASIC program, '300' is

A. variable
B. identifier
C. line number
D. single number
Answer» D. single number
35.

What will be output of the following code?

A. 8 4 2
B. 8 4 2
C. 8 4 4
D. 8 4 3
Answer» D. 8 4 3
36.

What will be output of the following c code? ( according to GCC compiler)

A. 0 0
B. 65536 -10
C. 0 65536
D. Compilation error
Answer» B. 65536 -10
37.

Device used to translate programming language into machine code is classified as

A. inverter
B. reversal
C. operator
D. assembler
Answer» E.
38.

Names used to identify a specific location and are invented by programmers are called

A. mechanics
B. mnemonics
C. lined addresses
D. symbolic addresses
Answer» E.
39.

Special character symbol '/' is used to indicate

A. director
B. direction
C. directive
D. direction arrows
Answer» D. direction arrows
40.

In line "200 INPUT NUM: PRINT 5.8*NUM+5" of a BASIC program, 'PRINT 5.8*NUM+5" ' is

A. statement
B. single variable
C. double identifier
D. reserved expression
Answer» B. single variable
41.

Programming language used to encourage logical thinking is classified as

A. LOGO
B. COMAL
C. COBOL
D. PASCAL
Answer» B. COMAL
42.

Explanations at right side of mnemonics and symbolic addresses are called

A. user comments
B. compiler comments
C. assembler comments
D. programmers comment
Answer» E.
43.

Statement which gives value to a variable is called

A. assignment
B. real assigning
C. string assigning
D. constant assigning
Answer» B. real assigning
44.

In high level programming language BASIC, statements written with GOTO and IF commands are considered as

A. loop
B. case
C. format
D. condition
Answer» B. case
45.

In analyzing the compilation of PL/I program,the description creation of more optimal matrix is associated with

A. assembly and output
B. code generation
C. syntax analysis
D. machine independent optimization
Answer» E.
46.

Language which have many types, but the type of every name and expression must be calculated at compile time are

A. weakly typed languages
B. loosely typed languages
C. strongly-type languages
D. none of these
Answer» D. none of these
47.

What will be output of the following c code?

A. -4
B. -5
C. 10
D. 11
Answer» B. -5
48.

In some programming languages, an identifier is permitted to be a letter followed by any number of letters or digits. If L and D denotes the sets of letters and digits respectively, which of the following expressions define an identifier ?

A. ( L . D )*
B. ( L∪ D ) *
C. L . ( L . D )*
D. L ( L ∪  D)*
Answer» E.
49.

In line "100 INPUT NUM" of a BASIC program, 'INPUT NUM' is

A. expression
B. line statement
C. reserved words
D. single instruction
Answer» E.
50.

Functions used in programs that are defined by programmers are called

A. built-in functions
B. program layout
C. program procedure
D. user-defined function
Answer» E.