Question & Additional Information
 
You have a bucket of jelly beans. Some are red, some are blue, and some green. With your eyes closed, pick out 2 of a like color. How many do you have to grab to be sure you have 2 of the same?
Add to My IQ
 

Answer Title
Answer

To be sure, to pick atleast 2 marbles of a same color we need to grab at least 4 marbles, since the worst case is that three of them are different, the fourth marble has to be a repetition of one of three colors.

Question Tag Title
Tags
Question Asked At Title
Asked At
None
Question Job Title
Job Titles
None


Check out our newest job listings!

Post a Job! $49 for 60 days



Your Name:
Add your comment text
 
Related Questions
Related Questions
Flag this interview question as inappropriate Inappropriate
See Answer
black,blue,white,brown
Create Date
:
Friday, May 09, 2008
Tags
:
Asked At
:
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
blue, green red
Create Date
:
Tuesday, April 01, 2008
Tags
:
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
(Cathode Ray Tube) CRT is coated with tiny dots of red, green, and blue phosphor that combine to make up each pixel, which is a single element in an electronic image. Resolution describes the sharpness and clearness of an image. Dot pi tch, sometimes called pixel pitch, is the distance in millimeters between each like-colored pixel on the screen. Refresh rate is the speed that a monitor redraws the images on the screen.
Create Date
:
Friday, April 11, 2008
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
Red biotechnology is biotechnology applied to medical processes. Some examples are the designing of organisms to produce antibiotics, and the engineering of genetic cures to diseases through genomic manipulation.
Create Date
:
Thursday, March 20, 2008
Tags
:
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
Most importantly, be realistic! Blue sky stuff brands you as immature. One or two management jumps in three to five years is a reasonable goal. If your track indicates you're on line for senior management in ten years, it's okay to mention. However, if you've had a rocky road, it's better to be introspective.
Create Date
:
Thursday, March 20, 2008
Tags
:
Asked At
:
None
Job Positions
:
Click here to improve the Interview Question, Answer and other fields.
Comments (0) :
Goto add your comment on the Question 
Flag this interview question as inappropriate Inappropriate
See Answer
There is no special function module for subtotal.we have to make some calculations on field_caltalog fieds.
to get the sub totals here is some code to solve this--
code:
*----------------------------------------------------------------------*
* Type Pools
*----------------------------------------------------------------------*
TYPE-POOLS:slis.

*----------------------------------------------------------------------*
* Tables
*----------------------------------------------------------------------*
TABLES: vbak,vbap.

*----------------------------------------------------------------------*
* Global Variable
*----------------------------------------------------------------------*
data: w_var type i.
*----------------------------------------------------------------------*
* Global Data
*----------------------------------------------------------------------*
DATA:it_fieldcat TYPE slis_t_fieldcat_alv,
     wa_fieldcat TYPE slis_fieldcat_alv,
     it_sortcat TYPE slis_t_sortinfo_alv,
     wa_sortcat  LIKE LINE OF it_sortcat.

*----------------------------------------------------------------------*
* Internal Table
*----------------------------------------------------------------------*
data: BEGIN OF it_salesorder OCCURS 0,

        vbeln LIKE vbak-vbeln,    " Sales Document Number
        posnr like vbap-posnr,    " Sales Doc Item
        netwr like vbap-netwr,    " Net Value

      END OF it_salesorder.

*----------------------------------------------------------------------*
*  SELECT OPTIONS
*----------------------------------------------------------------------*
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln.   " Sales Document Number.
SELECTION-SCREEN END OF BLOCK b1.

*----------------------------------------------------------------------*
*  Initialization
*----------------------------------------------------------------------*
INITIALIZATION.
  PERFORM initialization.
*&---------------------------------------------------------------------*
*&      Form  initialization
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  -->  p1        text
*  <--  p2        text
*----------------------------------------------------------------------*
form initialization .
  s_vbeln-sign   = 'I'.
  s_vbeln-option = 'BT'.
  s_vbeln-low    = '4969'.
  s_vbeln-high   = '5000'.
  APPEND s_vbeln.
endform.                    " initialization

*----------------------------------------------------------------------*
*  Start Of Selection
*----------------------------------------------------------------------*
START-OF-SELECTION.
  PERFORM field_catalog.   "For Structure Creation
  PERFORM fetch_data.      "Get the Data From DB Table
  PERFORM sorting USING it_sortcat.

*----------------------------------------------------------------------*
* End Of Selection
*----------------------------------------------------------------------*
END-OF-SELECTION.
  perform display_data.


*&---------------------------------------------------------------------*
*&      Form  field_catalog
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  -->  p1        text
*  <--  p2        text
*----------------------------------------------------------------------*
form field_catalog .

  wa_fieldcat-col_pos       = w_var.          " Column Position Variable
  wa_fieldcat-tabname       = 'IT_SALESORDER'. " Internal Table Name
  wa_fieldcat-fieldname     = 'VBELN'.         " Field Name
  wa_fieldcat-key           = 'X'.             " Blue Color
  wa_fieldcat-ref_tabname   = 'VBAK'.          " Table Name
  wa_fieldcat-ref_fieldname = 'VBELN'.         " Field Name
  wa_fieldcat-seltext_m     = 'Sales Doc No'.  " Display Text In Screen
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  ADD 1 TO w_var.

  wa_fieldcat-col_pos       = w_var.          " Column Position Variable
  wa_fieldcat-tabname       = 'IT_SALESORDER'. " Internal Table Name
  wa_fieldcat-fieldname     = 'POSNR'.         " Field Name
  wa_fieldcat-ref_tabname   = 'VBAP'.          " Table Name
  wa_fieldcat-ref_fieldname = 'POSNR'.         " Field Name
  wa_fieldcat-seltext_m     = 'Sales Doc Item'. " Display Text In Screen
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  ADD 1 TO w_var.

  wa_fieldcat-col_pos       = w_var.          " Column Position Variable
  wa_fieldcat-tabname       = 'IT_SALESORDER'. " Internal Table Name
  wa_fieldcat-fieldname     = 'NETWR'.         " Field Name
  wa_fieldcat-ref_tabname   = 'VBAP'.          " Table Name
  wa_fieldcat-ref_fieldname = 'NETWR'.         " Field Name
  wa_fieldcat-do_sum        = 'X'.             " Sum
  wa_fieldcat-seltext_m     = 'Net Value'.  " Display Text In Screen
  APPEND wa_fieldcat TO it_fieldcat.
  CLEAR wa_fieldcat.
  ADD 1 TO w_var.
endform.                    " field_catalog
*&---------------------------------------------------------------------*
*&      Form  sorting
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      -->P_IT_SORTCAT  text
*----------------------------------------------------------------------*
form sorting using p_it_sortcat TYPE slis_t_sortinfo_alv.
  wa_sortcat-fieldname = 'VBELN'.
  wa_sortcat-up        ='X'.
  wa_sortcat-subtot    = 'X'.
  APPEND wa_sortcat TO p_it_sortcat.
endform.                    " sorting
*&---------------------------------------------------------------------*
*&      Form  display_data
*&---------------------------------------------------------------------