Questions

MCQ . (1 Marks)

🎯

Test yourself on this topic

49 questions · timed · auto-graded

MCQ 11 Mark
Which of the following C character categories does the symbol ‘$=$’ belong?
  • A
    A Letters
  • B
    White spaces
  • Special Characters
  • D
    Digits
Answer
Correct option: C.
Special Characters
View full question & answer
MCQ 21 Mark
Which of the following number refers to number of $C$ characters categories?
  • A
    $O$
  • B
    $2$
  • $4$
  • D
    $8$
Answer
Correct option: C.
$4$
View full question & answer
MCQ 41 Mark
The pre$-$processor directive #define is used to define which of the following in $C$?
  • A
    String constant.
  • Symbolic constant
  • C
    Integer constant
  • D
    A character
Answer
Correct option: B.
Symbolic constant
View full question & answer
MCQ 71 Mark
.________ instructs the compiler to replace all occurrences of symbolic constants with the values specified against it.
  • A
    include <stdio.h>
  • # define
  • C
    C main (1
  • D
    None of the given
Answer
Correct option: B.
# define
b
View full question & answer
MCQ 81 Mark
________of the following is/are pre-processor directive.
  • A
    # include
  • #define
  • C
     # function
  • D
    Both A and B
Answer
Correct option: B.
#define
b
View full question & answer
MCQ 101 Mark
Executable code is loaded on to memory by a program called _______along with the required data.
  • A
    linker
  • B
    compiler
  • C
    text editor
  • loader
Answer
Correct option: D.
loader
D
View full question & answer
MCQ 111 Mark
_______is used to link the object code with the library functions giving executable program or code.
  • A
    Compiler
  • B
    Loader
  • Linker
  • D
    D All of the given
Answer
Correct option: C.
Linker
C
View full question & answer
MCQ 131 Mark
The source code converted into machine language program by compiler is known as _______.
  • A
    Object code
  • B
    Object program
  • A or B
  • D
    Executable code
Answer
Correct option: C.
A or B
c
View full question & answer
MCQ 141 Mark
Which of the following converts a source program into machine language program?
  • Compiler/translator
  • B
    Loader
  • C
    Linker
  • D
    All of the given
Answer
Correct option: A.
Compiler/translator
a
View full question & answer
MCQ 161 Mark
The program written using a text editor is known as _______.
  • source code/source program
  • B
    object code
  • C
    executable code
  • D
    loader code
Answer
Correct option: A.
source code/source program
a
View full question & answer
MCQ 191 Mark
The function_________ is used for calculating value of X raised to given power.
  • pow ( )
  • B
    expo ( )
  • C
    sqr ( )
  • D
    none of the given
Answer
Correct option: A.
pow ( )
a
View full question & answer
MCQ 201 Mark
_______ of the following function provides normal exit from the main or any other function.
  • A
    scanf ( )
  • return 0
  • C
    printf ( )
  • D
    end main
Answer
Correct option: B.
return 0
b
View full question & answer
MCQ 211 Mark
At which place, the user defined functions other than the main are written in C program?
  • A
    before main ( )
  • B
    after main ( )
  • A or B
  • D
    within main ( )
Answer
Correct option: C.
A or B
c
View full question & answer
MCQ 221 Mark
_______ of the following is/are built-in function/s.
  • A
    printf ( )
  • B
    scanf
  • C
    sqrt ( )
  • all of the given
Answer
Correct option: D.
all of the given
d
View full question & answer
MCQ 231 Mark
The functions that a user creates as per his/her requirements are called_______ functions.
  • A
    In-built
  • B
    Library
  • User defined
  • D
    A or B
Answer
Correct option: C.
User defined
c
View full question & answer
MCQ 241 Mark
The functions already available in C that a user can use in his or her program are known as ________functions.
  • A
    In-built
  • B
    Library
  • C
    User defined
  • A or B
Answer
Correct option: D.
A or B
d
View full question & answer
MCQ 251 Mark
_______of the following is a user defined function.
  • main
  • B
    printf ( )
  • C
    scanf ( )
  • D
    #define PI 3.14
Answer
Correct option: A.
main
a
View full question & answer
MCQ 261 Mark
The execution of C program starts from _______.
  • A
    #include <stdio.h>
  • B
    # define PI 3.14
  • main ( )
  • D
    All of the given
Answer
Correct option: C.
main ( )
c
View full question & answer
MCQ 271 Mark
The global variables are defined _________.
  • A
    within { }
  • before defining main ()
  • C
    after the end of main ( )
  • D
    none of the given
Answer
Correct option: B.
before defining main ()
B
View full question & answer
MCQ 281 Mark
The variables defined within _______are known as local variables.
  • A
    ( )
  • B
    [ ]
  • C
    < >
  • { }
Answer
Correct option: D.
{ }
d
View full question & answer
MCQ 311 Mark
Each C program starts with _________statement.
  • A
    #define PI 3.14
  • #include <stdio.h>
  • C
    Include <>
  • D
    none of the given
Answer
Correct option: B.
#include <stdio.h>
b
View full question & answer
MCQ 321 Mark
_______of the following is a pre-processor command.
  • A
    maini 1
  • B
    scanf
  • C
    printfi
  • #include <stdio.h>
Answer
Correct option: D.
#include <stdio.h>
d
View full question & answer
MCQ 341 Mark
The < stdio.h> file contains information about the________.
  • A
    user defined functions
  • in-built functions used in the program
  • C
    symbolic constant
  • D
    variable
Answer
Correct option: B.
in-built functions used in the program
b
View full question & answer
MCQ 351 Mark
In C language. symbolic constant is generally written using ______.
  • A
    include
  • # define
  • C
    main
  • D
    none of the given
Answer
Correct option: B.
# define
b
View full question & answer
MCQ 361 Mark
Which of the following are defined using capital letters?
  • A
    Variable
  • B
    Constant
  • Symbolic constant
  • D
    Global variable
Answer
Correct option: C.
Symbolic constant
c
View full question & answer
MCQ 371 Mark
In C language, comments are enclosed within________.
  • A
    / and/
  • B
    < and >
  • /* and */
  • D
    * and*
Answer
Correct option: C.
/* and */
c
View full question & answer
MCQ 381 Mark
Which of the following is/are included in the optional section of C program?
  • Documentation
  • B
    Symbolic Constant Definition
  • C
    File Include Section and Global Variable Declaration
  • D
    All of the given
Answer
Correct option: A.
Documentation
A
View full question & answer
MCQ 391 Mark
Which of the following is a comment section?
  • Documentation
  • B
    File Include Section
  • C
    main ( )
  • D
    Symbolic Constant Definition
Answer
Correct option: A.
Documentation
A
View full question & answer
MCQ 401 Mark
By which other name C language is known as?
  • A
    General Purpose Programming Language
  • B
    ANSI C
  • Both A and B
  • D
    ASCII C
Answer
Correct option: C.
Both A and B
C
View full question & answer
MCQ 411 Mark
C is a _______language.
  • A
    structured
  • B
    portable
  • C
    middle level and higher level
  • all of the given
Answer
Correct option: D.
all of the given
d
View full question & answer
MCQ 421 Mark
Different______ support ANSI standard.
  • A
    operating systems
  • B
    compilers
  • C
    programming languages
  • both A and B
Answer
Correct option: D.
both A and B
D
View full question & answer
MCQ 431 Mark
The full form of ANSI is_______.
  • A
    American National Symbolic Institute
  • B
    Australian National Symbolic Institute
  • American National Standard Institute
  • D
    Australian National Standard Institute
Answer
Correct option: C.
American National Standard Institute
c
View full question & answer
MCQ 441 Mark
C language has been standardized by_______.
  • A
    ASCII
  • ANSI
  • C
    ANCI
  • D
    All of the given
Answer
Correct option: B.
ANSI
b
View full question & answer
MCQ 451 Mark
The full form of BCPL is_______.
  • Basic Combined Programming Language
  • B
    Basic Computing Programming Language
  • C
    Best Computer Programming Language
  • D
    Business Co-ordinated Programming Language
Answer
Correct option: A.
Basic Combined Programming Language
A
View full question & answer
MCQ 471 Mark
_______ owns the credit of creating C language.
  • A
    Bill Gates
  • B
    Steve Jobs
  • C
    Pascal
  • Dennis M. Ritchie
Answer
Correct option: D.
Dennis M. Ritchie
d
View full question & answer
MCQ 481 Mark
The program that converts programming language into the machine language is called_______.
  • Compiler
  • B
    Loader
  • C
    Linker
  • D
    All of the given
Answer
Correct option: A.
Compiler
a
View full question & answer
MCQ 491 Mark
A set of precise and clear instructions given to a computer for performing a predefined task is called_______.
  • A
    Syntax
  • B
    Data
  • Program
  • D
    Input
Answer
Correct option: C.
Program
c
View full question & answer