C/C /OOPS Quiz Questions and Answers(MCQS) Sample Test,Sample questions

Question:
A function can return

1.Two values

2.No value

3. Only one value

4.Many values


Question:
A library files that come with C are

1.Program examples

2. Files that contain function which carry out various commonly used operations and calculations

3.The compiler and liner

4.Text editor for program development


Question:
A single character input from the keyboard can be obtained by using the function

1. Scan f( )

2.Put char( )

3.Get char( )

4.Print f( )


Question:
A variable is an algebraic expression that temporarily assumes the properties of a constant is called

1.Function

2.Dummy parameter

3.Parameter

4.Operator


Question:
A variable that holds the memory address of another object is called

1. Memory variable

2.Constant

3.Pointer

4.Integer


Question:
allows the user to use

1.One-dimensional array

2.Two-dimensional array

3.Three dimensional array

4.Multi dimensional arrays


Question:
An error in the program is called

1.A function

2.A bug

3.A variable

4.An error only


Question:
An expression

1. is a name that substitutes for a sequence of characters

2. causes the computer to carry out some action

3.is a collection of data objects and operations that can be evaluated to a single value

4.all of these


Question:
An identifier in C

1.can obtain both upper case and lower case

2.is made up of letters numerals and the underscore

3. is a name of thing such as variable and function

4.all of these


Question:
An unary operator! Represents

1.Unary minus

2.Logical not operator

3.Decrement operator

4.Increment operator


Question:
An unary operator! Represents

1.Unary minus

2.Logical not operator

3.Decrement operator

4.Increment operator


Question:
By default, any real number in ‘C’ is treated as

1.depends upon memory model that you are using

2.a long double

3.a double

4.a float


Question:
By pressing ___ key, the user can exit the turbo C environment.

1. Ctrl + X

2.Alt + X

3.Ctrl + A

4.Enter


Question:
By using ____ the speed of the process can be increased.

1.Integer

2.Unsigned integer

3.Short integer

4. Long integer


Question:
C contains which of the following two special pointer operators?

1.% and &

2.& and &&

3.*and &&

4.* and &


Question:
Each block of a C program is referred as

1.Integer

2.Event

3.Variables

4.Function


Question:
Each element in a structure has a

1.Unique variable

2.Unique name

3.Name

4.Space


Question:
Enumeration is a

1. Set of legal values possible for a variable

2. List of operators

3. List of strings

4.Set of numbers


Question:
For two-dimensional arrays data are usually entered

1.Array wise

2.Element wise

3.Row-wise

4.Column-wise


Question:
In C, square brackets [ ] are used in

1.Statements

2.Functions

3.Arrays

4.Pointer


Question:
In do-while structure, the condition is checked at ___

1. the beginning of the loop

2.the end of the loop only

3.the centre of the loop

4. any statement of the loop


Question:
In programming, repeating some code is usually called ___

1.Looping

2.Compiling

3.Structure

4.Control structure


Question:
In the for loop structure, the clauses namely ___ are optional.

1.Assign and logic

2.Assign and alter

3.Logic and alter

4.Assign, logic and alter


Question:
In which header file are the library functions used for I/O purpose kept?

1.stdio.h

2.math.h

3. stdio.h or math.h

4.none of these


Question:
In which of the following it is convenient to group related data items as one entry?

1.Array

2.Matrix

3.Token

4.Determinant


Question:
Almost every C program begins with the statement

1.# include <stdio.h>

2.Print f( )

3.SCAN( )

4.Main( )


Question:
Keywords cannot be used as ____

1.Variables

2.Variables or constant names

3.Constant names

4.None of the above


Question:
Main( ) is an example of

1.Header

2.Statement

3.User defined function

4. Library function


Question:
Ready made library functions are used for

1.Output

2.Input

3. Neither input nor output

4. Input and output


Question:
Running any C program involves

1.Creating/ editing

2.Compiling and linking

3.Executing

4.All the above steps


Question:
Subscripted variable is any type such as

1.Int

2.Float

3.Int, float or char

4.Char


Question:
The break statement is used to exit from a

1.Do loop

2.For loop

3.Switch statement

4.All of these


Question:
The first character of the variable name

1.May be a number

2.Must be an alphabet

3.Must be an underscore

4.Must be an alphabet or underscore


Question:
The functions scan f( ) reads

1.any possible variable type

2.any possible number

3.character strings

4. a single character


Question:
The functions that are defined according to our requirements are called ____

1.Good functions

2.Modules

3.User defined functions

4.Library functions


Question:
The general form of do while statements is

1.Do while expression

2. Do statement while (expression);

3.Do statement while statement

4.Do expression while statement


Question:
The general form of the condition expression is

1. Expression ? expression 2 : expression 3

2.Expression 3? Expression 2: expression 1

3.Expression 2? expression 3? Expression 1

4.None of these


Question:
The header file `setjmp.h’ can be used for providing

1.Character type identification and translation

2. Support for string handling functions

3.Diagnostic and debugging assistance

4.Links to assembly language for calls


Question:
The math library is set up for the user by the file

1.Time .h

2.Math .h

3.Limits .h

4.Float .h


Question:
The maximum length of the variable is ___ characters.

1.22

2.32

3.52

4.62


Question:
The method in which a problem has been divided into many smaller problems is called ___

1.Problem approach

2.Top Down approach

3.New approach

4.None of these


Question:
The method of checking the pseudo codes is called ___

1.Sequencing

2.Walk through

3.Branching

4.Iteration


Question:
The most common use of the one dimensional array in C is

1.Function

2.Data

3.Character

4.String


Question:
The most popular loop for array manipulation is the ___ loop.

1.for

2.while

3.do while

4.any


Question:
The operator << and >> are

1.Assignment operators

2.Bitwise logical operators

3.Logical operators

4.Relational operators


Question:
The single character input/output functions are

1.scan f ( ) and print f ( )

2.get char ( ) and print f ( )

3.scan f ( ) and put char ( )

4.get char ( ) and put char ( )


Question:
The two operators && and || are

1.Relational operators

2. Equality operators

3.Arithmetic operators

4. Logical operators


Question:
The __ is a program that links the object code of the program with the library function code that is necessary for the program to run.

1.C linker

2.Compiler

3.C compiler

4.Editing


Question:
When one loop is constructed within another loop it is called a

1.For loop

2.Do loop

3.Do-while loop

4.Nested loop


Question:
Whenever a C program is executed, execution starts from

1.Scanf function

2. Void function

3.Any function

4. Main function


Question:
Which header file should be included if it is required to develop a function that can accept variable number of arguments?

1.Stdarg.h

2.Stdio.h

3.Stdlib.h

4.Vardar.h


Question:
Which is not necessary when using bar codes in supermarkets?

1.Price on the shelf

2.Price on the goods

3.Point-of sale (POS) terminal

4.Check digit on the bar code


Question:
Which language makes use of object oriented approach?

1.C

2.C++

3.Java

4.C++ and Java


Question:
Which of the following are called white space characters?

1.The blank space

2.New line character

3.Blank space & new line character

4.None of the above


Question:
Which of the following is a storage class specification in C?

1.static

2.automatic

3.external

4.all of these


Question:
Which of the following is an intermediate language?

1.Pseudo code

2.Basic

3.FORTRAN

4.Computer language


Question:
Which of the following operators in ‘C’ programming language takes only integer operands?

1.+

2.*

3./

4.%


Question:
Which of the following statement is used to skip a part of the loop?

1.Break

2.Continue

3.Both

4. None of the above


Question:
Which of the following statements is correct?

1.Provides no features to manipulate composite objects

2.C provides no file access features

3.C provides no input-output features

4. All of these


Question:
Which one of the following indicates the solution method?

1.Algorithm

2.Program

3. Flow chart

4.All the above


Question:
_ are declared within the body of a function.

1.Variables

2. Local variables

3.Main functions

4.Arrays


Question:
_ groups a number of program statements into a single unit.

1.Array

2.Structure

3.Variable

4.Function


Question:
_ is an effective tool for programming scientific, mathematical and engineering computations.

1.Parameter

2. Main function

3.Recursion

4.Local variable


Question:
_ is in between English and the high level computer language.

1.Mnemonic code

2.Binary code

3.Pseudo code

4.Flow chart


Question:
__ have no meaning outside the body of a function.

1.Variables

2.Main functions

3.Global variables

4. Local variables


More MCQS

  1. C++ Programming MCQS Set-1
  2. C++ Multiple Choice Questions Set-1
  3. C++ Multiple Choice Questions Set-2
  4. C++ Programming MCQS Set-2
  5. C++ Programming MCQS Set-3
  6. C++ Programming MCQS Set-4
  7. C++ (CPP) MCQ Question with Answer
  8. Advanced c++ multiple choice question(MCQS)
  9. OOPS Quiz Questions and Answers(MCQS)
  10. C Programming - MCQ Questions Set 1
  11. C Programming - MCQ Questions Set 2
  12. C Programming - MCQ Questions Set 3
  13. C Programming - MCQ Questions Set 4
  14. C Programming - MCQ Questions Set 5
  15. C++ programming language MCQ Questions Set 1
  16. C++ programming language MCQ Questions Set 2
  17. C++ programming language MCQ Questions Set 3
  18. C++ programming language MCQ Questions Set 4
  19. C++ programming language MCQ Questions Set 5
  20. C++ Programming -Constructors and Destructors
  21. C++ Programming -OOPS Concepts
  22. C++ Programming - References
  23. C++ Programming - Functions
  24. C MCQS:-The ABC of C
  25. C MCQS Interview Questions
  26. C++ Questions and Answers – OOPs Basic Concepts
  27. C++ Questions and Answers – Returning Objects
  28. C Programming MCQ Part 1
  29. C Programming MCQ
  30. Computer Science & Engineering C Multiple Choice Questions set 1
  31. Computer Science & Engineering C Multiple Choice Questions set 2
  32. C Multiple Choice Questions C Functions Set 1
  33. C Multiple Choice Questions C Functions Set 2
  34. C Multiple Choice Questions C Operators
  35. C Multiple Choice Questions & AnswersConditional Expressions
  36. C Multiple Choice Questions & Answers Data Types
  37. C Multiple Choice Questions & Answers File Access
  38. Computer Science & Engineering Cloud Computing MCQs Part 1
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!