pKmcqsquiz

Pagination on API result
Question: __ statement interrupts the flow of control.
  • 1. switch
  • 2. continue
  • 3. goto
  • 4. break
Question: From following; which one is the correct syntax of an array initialize: Array size is 10 and it is of double data type to value 0?
  • 1. arr[10] = {0.0};
  • 2. double arr[10]= 0.0;
  • 3. double arr[10] = {0.0};
  • 4. double arr[] = 0.0;
Question: __are conventional names of the command line parameters of the ‘main()’ function.
  • 1. ‘argb’ and ‘argv’
  • 2. ‘argc’ and ‘argv’
  • 3. argc’ and ‘argu’
  • 4. None of the given
Question: If int a = 50; then the value of a/= 3; will be,?
  • 1. 15
  • 2. 16
  • 3. 17
  • 4. 18
Question: the sizeof operator is used to determine the size of?
  • 1. data
  • 2. variable
  • 3. data type
  • 4. None of the given
Question: < , <= , > , >= are called __ operators.
  • 1. Arithmetic
  • 2. Logical
  • 3. Relational
  • 4. Conational
Question: __ Keyword is used to return some value from a function.
  • 1. break
  • 2. return
  • 3. continue
  • 4. goto
Question: Deleting an array of objects without specifying [] brackets may lead to memory leak?
  • 1. True
  • 2. False
  • 3. Both
  • 4. None
Question: What is the sequence of event(s) when allocating memory using new operator?
  • 1. Only block of memory is allocated for objects
  • 2. Only constructor is called for objects
  • 3. Memory is allocated first before calling constructor
  • 4. Constructor is called first before allocating memory
Question: What is the functionality of the following statement? String str[5] = ,String(“Programming”), String(“CS201”)-;?
  • 1. Default constructor will call for all objects of array
  • 2. Parameterized constructor will call for all objects of array
  • 3. Parameterized constructor will call for first 2 objects and default constructor for remaining objects
  • 4. Default constructor will call for first 3 objects and Parameterized constructor for remaining objects

Search

Category

Subjects