0
Alien head

programming languages Online Quiz - 45

Description: programming languages Online Quiz - 45
Number of Questions: 20
Created by:
Tags: programming languages

Exit is a function defined in the cstdlib library.

  1. True

  2. False

Answer: 1

This operator returns the size in bytes of that data type or object or structure etc

  1. Conditional Operator

  2. Bitwise Operators

  3. sizeof () operator

  4. Relational Operator

Answer: 3

UML stands for

  1. Unique modeling language.

  2. Unified modeling language

  3. Unified modern language

  4. Unified master laqnguage

Answer: 2

A recursive function would result in infinite recursion, if the following were left out:

  1. Base case

  2. Recursive call

  3. Subtraction

  4. Local variable declarations

Answer: 2

A class is

  1. Data Type

  2. Abstract Type

  3. User Defined Type

  4. All of these options

Answer: 3

The symbol "?" belongs to which operator?

  1. Conditional Operator

  2. Bitwise Operators

  3. Logical operators

  4. Relational Operator

Answer: 1

Determine Output: main() { printf("%x",-1<<4); }

  1. -16

  2. fff0

  3. 0

  4. 0010

Answer: 2

Determin Output: int main() { int a, b,c, d; a=3; b=5; c=a,b; d=(a,b); printf("c = %d" ,c); printf("\n\nd = d" ,d); return 0; }

  1. 5,5

  2. 3,3

  3. 3,5

  4. Error

Answer: 3

Determine Output: int main() { int a[5] = {1,2,3,4,5}; int ptr = (int)(&a+1); printf("%d %d" , *(a+1), *(ptr-1) ); return 0; }

  1. 2,1

  2. 2,5

  3. compile error

  4. 2,2

Answer: 2

Determine Output : struct node { int a; int b; int c; }; int main() { struct node s= { 3, 5,6 }; struct node pt = &s; printf("Ans : %d" , *(int)pt); return 0; }

  1. 4

  2. 5

  3. 3

  4. Compile error

Answer: 3

Determine Output: int counter (int value) { static int count =0; count = count +value; return count; } main() { int i , j; for (i=0; i <=5; i++) j = counter(i); printf("J = %d", j); return 0; }

  1. 5

  2. 4

  3. 10

  4. 15

Answer: 4

Determine output: void main(){ int x,y; x = 5; y = ++x * ++x; printf("Value of x = %d and Value of y = %d\n",x,y);}

  1. 7,49

  2. 7,42

  3. 7,36

  4. 7,25

Answer: 1

Determine output : main(){ int i=012; int j=046; int k=056; printf("i=%d",i); printf("j=%d",j); printf("k=%d",k);}

  1. 012046056

  2. 124656

  3. 103846

  4. 010038046

Answer: 3

Determine Output: main(){ unsigned int y = 12; int x = -2; if(x>y) printf(" x is greater"); else printf (" y is greater"); return 0;}

  1. x is greater

  2. y is greater

  3. compile error

  4. none

Answer: 1

Is Session Method, Asynchronous or Synchronous?

  1. Asynchronous

  2. Synchronous

  3. Synchronous and Asynchronous

  4. None of above

Answer: 2

For which tasks do you use an If() function? i)To conditionally show rows in a block ii)To conditionally execute a scheduled report iii)To display dynamically grouped values iv)To display a dynamic list of values

  1. i

  2. iii

  3. a & b

  4. a & c

  5. a,b,c

Answer: 4

Which wildcards can you use in a query filter? i)? ii)% iii)- iv)*

  1. i

  2. ii

  3. iii

  4. a & c

Answer: 4

Which message appears when you select “Use Query Drill” while scope of analysis is set in a BO BebI XI 3.X report?

  1. The scope of analysis is not empty

  2. The query drill mode option is enabled.

  3. The query drill mode option is not enabled.

  4. The scope of analysis is empty

Answer: 1

You can create variables for the following? i) characteristics ii) formulas iii) hierarchies iv) texts

  1. All of the options

  2. ii,iii

  3. i,iv

  4. i,ii,iii

Answer: 1

What types of flat files are acceptable to import into BW? i) ASCII ii) CSV iii)binary files iv)xml

  1. i & ii

  2. all of the above

  3. i,ii,iii

  4. ii

Answer: 3
+ View questions