Go To Top Reset
<<= Back
Next =>>
You Are On Multi Choice Question Bank SET 2469
123451. Which is invalid name of identifier
(A): world (B): addition23 (C): test_name (D): factorial
123452. Adding to a pointer that points to an array will
(A): Cause an error (B): Increase the value of the element that the pointer is pointing to (C): Cause the pointer to point to the next element in the array (D): None of above
123453. What is true about fputs function
(A): write to a file (B): takes two parameters (C): requires a file pointer (D): all of above
123454. What is correct order of precedence in C
(A): Addition, Division, Modulus (B): Addition, Modulus, Division (C): Multiplication, Substration, Modulus (D): Modulus, Multiplication, Substration
123455. A variable in c
(A): must have a valid datatype (B): must have a name starting with a character (C): All of above
123456. printf() belongs to which library of c
(A): stdlib.h (B): stdio.h (C): stdout.h (D): stdoutput.h
123457. UML meaning is
(A): Unique modeling language (B): Unified modeling language (C): Unified modern language (D): Unified master laqnguage
123458. Structures can be used
(A): to hold different datatypes (B): have pointers to structures (C): to assign to one another (D): all of above
123459. A member is a
(A): Variable in a structure (B): Datatype of structure (C): Structure pointer (D): None of above
123460. To access the members of structure which symbol is used
(A): , (B): .
123461. What among following is true about stack
(A): stack cannot reuse its memory (B): all elements are of different datatypes (C): all operation done at one end (D): none of above
123462. Difference between structure and union is
(A): We can define functions within structures but not within a union (B): We can define functions within union but not within a structure (C): The way memory is allocated (D): There is no difference
123463. If (p) and p is same
(A): No (B): Yes
123464. Can getch() be used to echo the input
(A): Yes (B): No
123465. What is the purpose of getc()
(A): read a character from STDIN (B): read a character from a file (C): read all file (D): read file random
123466. Which operator has the highest priority
(A): () (B): [] (C): /
123467. The compiler in C ignores all text till the end of line using
(A): // (B): / (C): / (D): none of above
123468. rand() function returns
(A): float value (B): integer value (C): any type (D): none of above
123469. Out of following program : float x = 10.7 int i i = (int) x print i
(A): null (B): error (C): 10 (D): garbage value (E): Answer And Ex
123470. What is use of in c
(A): used to insert a vertical tab (B): used to insert a tab (C): places cursor at the end of line (D): places cursor at the start of line
123471. total number of keywords in C are
(A): 30 (B): 32 (C): 48 (D): 132
123472. Which of the following below is/are valid C keywords
(A): integer (B): int (C): null (D): none of above
123473. If include files can be nested
(A): Yes (B): No
123474. calloc() belongs to which library
(A): stdlib.h (B): malloc.h (C): calloc.h (D): None of above
123475. Exit() is same as return
(A): TRUE (B): FALSE
123476. Difference between calloc() and malloc()
(A): calloc() takes a single argument while malloc() needs two arguments (B): malloc() takes a single argument while calloc() needs two arguments (C): malloc() initializes the allocated memory to ZERO (D): calloc() initializes the allocated memory to NULL
123477. What will be the output of following program #include main() { int x,y = 10 x = y NULL printf("%d",x) }
(A): error (B): 0 (C): 10 (D): Garbage value (E): Answer And Explanation
123478. Due to variable scope in c
(A): Variables created in a function cannot be used another function (B): Variables created in a function can be used in another function (C): Variables created in a function can only be used in the main function (D): None of above
123479. What will be output of #include void main() { char test =`S` printf(" %c",test) }
(A): S (B): Error (C): Garbage value (D): None of above (E): Answer And Explanation
123480. Continue statement used for
(A): To continue to the next line of code (B): To stop the current iteration and begin the next iteration from the beginning (C): To handle run time error (D): None of above
123481. Break statement is used for
(A): Quit a program (B): Quit the current iteration (C): Both of above (D): None of above
123482. The first expression in a for loop is
(A): Step value of loop (B): Value of the counter variable (C): Any of above (D): None of above
123483. We can insert pre written code in a C program by using
(A): #read (B): #get (C): #include (D): #put
123484. Which among following has invalid syntax ?
(A): #include (B): #include file (C): #include "file" (D): None of above
123485. Which of the following type of class allows only one object of it to be created
(A): Virtual class (B): Abstract class (C): Singleton class (D): Friend class
123486. What is polymorphism
(A): Ability to take more than one form (B): Ability to destroy destructor (C): Ability to create constructor (D): None of above
123487. What is abstract class
(A): Whose objects cant be created (B): Whose objects can be created (C): Depends on class (D): None of above
123488. Meaning of STL
(A): Standard Tree Library (B): Standard Term Library (C): Standard Template Library (D): None of above
123489. Meaning of PDB
(A): Physical Database File (B): Program Database File (C): Program Direct File (D): None of above
123490. Stack unwinding deals with
(A): deals with polymorphism (B): deals with inheritance (C): deals with exception handing (D): deals with classes
123491. Which is not C++ storage class
(A): auto (B): register (C): static (D): iostream
123492. Default constructor has how many arguments
(A): 1 (B): 2 (C): 3 (D): 0
123493. What is inheritance
(A): Inheritance allows one class to reuse the state and behavior of another class. (B): It deals with dangling pointers (C): It deals with void pointers (D): It is type of class declaration
123494. Reference is like a
(A): Pointer (B): Structure (C): Array (D): None of above
123495. what is a class in c++
(A): Class in a collection of objects (B): Class has noting to do with object (C): It just have declaration of few variables (D): None of above
123496. What is the meaning of base class in C++
(A): Another class got inherit from this class (B): It inherit other class (C): It has a pointer variable (D): It is the first class declared
123497. C++ programs must contain
(A): start() (B): system() (C): main() (D): program()
123498. is used for
(A): carriage return (B): new line (C): end of the line (D): vertical tab
123499. How we define our name for constants
(A): #constant (B): #define (C): #define_constant (D): #constant_define
123500. what is the size of int datatype for 32 bit system
(A): 1 byte (B): 2 byte (C): 4 byte (D): 8 byte
<<= Back
Next =>>
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use
Powered By:Omega Web Solutions © 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions