0

programming languages Online Quiz - 27

Description: programming languages Online Quiz - 27
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0

Default layout for frame

  1. Flow Layout

  2. GridLayout

  3. Card Layout

  4. BorderLayout

  5. GridBagLayout


Correct Option: D

Check whether the syntax of the piece of code is correct: text.setBackGround(color.Yellow);

  1. True

  2. False


Correct Option: B
  1. int *ptr = (int *) malloc(10, sizeof(int));

  2. int *ptr = (int *) calloc(10, sizeof(int));

  3. int *ptr = (int *) malloc(10*sizeof(int));

  4. int *ptr = (int *) alloc(10*sizeof(int));


Correct Option: C

Code: #include int i; void increment( int i ) { i++; } int main() { for( i = 0; i < 10; increment( i ) ) { } printf("i=%d\n", i); return 0; } What will happen when the program above is compiled and executed?

  1. It will not compile.

  2. It will print out: i=9.

  3. It will print out: i=10.

  4. It will loop indefinitely


Correct Option: D
  1. char ** (* p) [12][12] = array;

  2. char ***** p = array;

  3. char * (* p) [12][12][12] = array;

  4. const char ** p [12][12][12] = array;


Correct Option: A

int z,x=5,y=-10,a=4,b=2; z = x++ - --y * b / a; What number will z in the sample code above contain?

  1. 12

  2. 10

  3. 11

  4. 6


Correct Option: B
  1. Skype

  2. Toad

  3. PL/SQL Developer

  4. MySQL

  5. MySQL Administrator


Correct Option: D

Find out the odd one.

  1. Embarcadero

  2. CodeGear

  3. Inprise

  4. Borland

  5. Pascal


Correct Option: E

Which compiler directive controls whether the reserved word 'string' represents a short string or a long string?

  1. $M+/-

  2. $H+/-

  3. $P+/-

  4. $V+/-

  5. $X+/-


Correct Option: B

Ultimate base class of all Objects and Components.

  1. TObect

  2. TUnknown

  3. IUnknown

  4. TBase

  5. TComponent


Correct Option: A
  1. Stack

  2. Heap

  3. Register

  4. Floppy

  5. Compact Disk


Correct Option: B

Property can be pass as a var parameters. Judge the statement.

  1. TRUE

  2. True using pointer

  3. FALSE

  4. Some times true, some times false.


Correct Option: C

TButton caption can be left aligned. Judge the comment.

  1. TRUE

  2. FALSE

  3. True with the help of changing the Bidi alignment.

  4. True by setting proper margin value.


Correct Option: B
- Hide questions