Warning (2): array_rand() expects parameter 1 to be array, null given [APP/Controller/Component/CommonComponent.php, line 314]Code Context{
$dem_array_trung++;
$value_rand = array_rand($array_system);
$clone = array( 'id' => '4520', 'chart' => '', 'question_id' => '34977', 'clone_type' => '1', 'phpfile' => null, 'clone_symbol' => null, 'clone_content' => 'In a $(cooking) class, $(f1) are $(males) and the <span style="color: #000000;">rest are</span> $(females). After $(n20) $(males) left the class, there are $(f2) as many $(males) as $(females). How many people were there in the $(cooking) class at first?', 'clone_solution_step' => '<table style="height: 88px;" width="641"> <tbody> <tr> <td style="text-align: center;"> </td> <td style="text-align: center;">$(Females)</td> <td style="text-align: center;">$(Males)</td> </tr> <tr> <td style="text-align: center;">Before</td> <td style="text-align: center;"><span style="color: #993300;">$(nn1)</span><sub>x$(l2) </sub>= <br />$(a1) u</td> <td style="text-align: center;"><span style="color: #000000;">$(n3)</span><sub>x$(l2) </sub>= <br />$(b1) u</td> </tr> <tr> <td style="text-align: center;">Change</td> <td style="text-align: center;"> </td> <td style="text-align: center;">- $(n20) </td> </tr> <tr> <td style="text-align: center;">After</td> <td style="text-align: center;"><span style="color: #993300;"> $(n2)</span><sub>x$(l1)</sub> = <br />$(a2) u</td> <td style="text-align: center;"><span style="color: #000000;">$(n1)</span><sub>x$(l1)</sub> = <br />$(b2) u</td> </tr> </tbody> </table> <br />The number of $(females) remains unchanged.<br /><br />Change in the number of $(males) <br />= $(b1) u - $(b2) u<br />= $(gu) u<br /><br />$(gu) u = $(n20)<br />1 u = $(n20) ÷ $(gu) = $(1u)<br /><br />Number of people at first<br />= $(t) u<br />= $(t) x $(1u)<br />= $(n30)<br /><br />Answer(s): $(n30)', 'clone_answer' => '$(n30) ', 'array' => object(stdClass) { 1513407166339 => object(stdClass) {} 1513407176314 => object(stdClass) {} 1513407195491 => object(stdClass) {} 1515729306353 => object(stdClass) {} 1513407214020 => object(stdClass) {} 1517280683500 => object(stdClass) {} }, 'clone_image' => null, 'clone_solution_step_image' => null, 'clone_answer_image' => null, 'status' => true, 'created' => '2017-12-16 15:12:21', 'modified' => '2018-02-21 10:20:26', 'original_question' => 'In a cooking class, <span class="frac"><sup>3</sup><sub>4</sub></span> are males and the rest are female. After 20 males left the class, there are <span class="frac"><sup>1</sup><sub>2</sub></span> as many males as females. How many people were there in the cooking class at first?', 'formula' => array( (int) 0 => 'array_capitalize(2,$(males))=$(Males) ', (int) 1 => 'array_capitalize(2,$(females))=$(Females) ', (int) 2 => 'get_numerator($(f1))=$(n3) ', (int) 3 => 'get_denominator($(f1))=$(n4)', (int) 4 => 'get_numerator($(f2))=$(n1) ', (int) 5 => 'get_denominator($(f2))=$(n2) ', (int) 6 => '$(n4) - $(n3) = $(nn1)', (int) 7 => 'get_lcm($(nn1),$(n2))=$(lcm)', (int) 8 => '$(lcm)/$(n2)=$(l1)', (int) 9 => '$(lcm)/$(nn1)=$(l2)', (int) 10 => '$(nn1)*$(l2) = $(a1)', (int) 11 => '$(n3)*$(l2) = $(b1)', (int) 12 => '$(n2)*$(l1) = $(a2)', (int) 13 => '$(n1)*$(l1) = $(b2)', (int) 14 => '$(b1) - $(b2) = $(gu)', (int) 15 => 'if(more_than($(gu)>1)) continue', (int) 16 => '$(b1) - $(b2) = $(gu)', (int) 17 => '$(1u) * $(gu) = $(n20)', (int) 18 => '$(n4)*$(l2) = $(t)', (int) 19 => '$(t) *$(1u) = $(n30)', (int) 20 => '', (int) 21 => '', (int) 22 => '' ), 'time_value' => array( (int) 0 => '1516176221503', (int) 1 => '1517289208650', (int) 2 => '1513408191396', (int) 3 => '1513407293719', (int) 4 => '1513407309744', (int) 5 => '1513407353111', (int) 6 => '1517280173854', (int) 7 => '1513407368812', (int) 8 => '1513407389481', (int) 9 => '1517242742090', (int) 10 => '1513407390151', (int) 11 => '1513407416432', (int) 12 => '1516529294600', (int) 13 => '1513407453326', (int) 14 => '1513407501591', (int) 15 => '1517282391705', (int) 16 => '1516176727730', (int) 17 => '1513407530992', (int) 18 => '1513407537309', (int) 19 => '1513407563144', (int) 20 => '1513407582419', (int) 21 => '1517221353582', (int) 22 => '1517242460477' ), 'criterion' => array( (int) 0 => '', (int) 1 => '', (int) 2 => '', (int) 3 => '', (int) 4 => '', (int) 5 => '', (int) 6 => '', (int) 7 => '', (int) 8 => '', (int) 9 => '', (int) 10 => '', (int) 11 => '', (int) 12 => '', (int) 13 => '', (int) 14 => '', (int) 15 => '', (int) 16 => '', (int) 17 => '', (int) 18 => '', (int) 19 => '', (int) 20 => '', (int) 21 => '', (int) 22 => '' ), 'type_criterion' => array( (int) 0 => '', (int) 1 => '', (int) 2 => '', (int) 3 => '', (int) 4 => '', (int) 5 => '', (int) 6 => '', (int) 7 => '', (int) 8 => '', (int) 9 => '', (int) 10 => '', (int) 11 => '', (int) 12 => '', (int) 13 => '', (int) 14 => '', (int) 15 => '', (int) 16 => '', (int) 17 => '', (int) 18 => '', (int) 19 => '', (int) 20 => '', (int) 21 => '', (int) 22 => '' ), 'image_gridline' => '', 'code_gridline' => '', 'level' => '', 'topic_id' => '', 'source' => '', 'question_code' => 'P4.FR.JM.17101799-A1', 'tag' => '', 'mark' => '', 'text_working' => '["","","","","","","","","","","","","","","","","","","","","","",""]', 'original_solution' => 'Before<br /> Male : Female<br />3 : 4 - 3<br />3 : 1<br />6 : 2<br /> <br /> After<br /> Male : Female<br />1 : 2<br /> <br /> 6 u - 1 u = 20<br /> 5 u = 20<br /> 1 u = 20 ÷ 5 = 4<br /> <br /> Number of people at first<br /> = 6 u + 2 u<br /> = 8 u <br />= 8 x 4 <br />= 32<br /> <br /> Answer(s): 32', 'delete_by' => null, 'delete_date' => null ) $Array1 = object(Array1) { table => 'array1s' validate => array() useDbConfig => 'default' useTable => 'array1s' id => '77' data => array() schemaName => 'ischoolb_orgi' primaryKey => 'id' validationErrors => array() validationDomain => null tablePrefix => '' plugin => null name => 'Array1' alias => 'Array1' tableToModel => array( 'array1s' => 'Array1' ) cacheQueries => false belongsTo => array() hasOne => array() hasMany => array() hasAndBelongsToMany => array() actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array() cacheSources => true findQueryType => null recursive => (int) 1 order => null virtualFields => array() __backAssociation => array() __backInnerAssociation => array() __backOriginalAssociation => array() __backContainableAssociation => array() __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( 'all' => true, 'first' => true, 'count' => true, 'neighbors' => true, 'list' => true, 'threaded' => true ) [protected] _schema => array( 'id' => array( [maximum depth reached] ), 'name' => array( [maximum depth reached] ), 'content' => array( [maximum depth reached] ), 'note' => array( [maximum depth reached] ), 'created' => array( [maximum depth reached] ), 'modified' => array( [maximum depth reached] ) ) [protected] _associationKeys => array( 'belongsTo' => array( [maximum depth reached] ), 'hasOne' => array( [maximum depth reached] ), 'hasMany' => array( [maximum depth reached] ), 'hasAndBelongsToMany' => array( [maximum depth reached] ) ) [protected] _associations => array( (int) 0 => 'belongsTo', (int) 1 => 'hasOne', (int) 2 => 'hasMany', (int) 3 => 'hasAndBelongsToMany' ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } $Prime = object(AppModel) { useDbConfig => 'default' useTable => 'primes' id => false data => array() schemaName => null table => 'primes' primaryKey => 'id' validate => array() validationErrors => array() validationDomain => null plugin => null name => 'Prime' alias => 'Prime' tableToModel => array( 'primes' => 'Prime' ) cacheQueries => false belongsTo => array() hasOne => array() hasMany => array() hasAndBelongsToMany => array() actsAs => null Behaviors => object(BehaviorCollection) {} whitelist => array() cacheSources => true findQueryType => null recursive => (int) 1 order => null virtualFields => array() __backAssociation => array() __backInnerAssociation => array() __backOriginalAssociation => array() __backContainableAssociation => array() __safeUpdateMode => false useConsistentAfterFind => true findMethods => array( 'all' => true, 'first' => true, 'count' => true, 'neighbors' => true, 'list' => true, 'threaded' => true ) [protected] _schema => null [protected] _associationKeys => array( 'belongsTo' => array( [maximum depth reached] ), 'hasOne' => array( [maximum depth reached] ), 'hasMany' => array( [maximum depth reached] ), 'hasAndBelongsToMany' => array( [maximum depth reached] ) ) [protected] _associations => array( (int) 0 => 'belongsTo', (int) 1 => 'hasOne', (int) 2 => 'hasMany', (int) 3 => 'hasAndBelongsToMany' ) [protected] _insertID => null [protected] _sourceConfigured => false [protected] _eventManager => null [protected] _validator => null } $answer_fix = '$(n30) ' $count_crition = (int) 1 $count_array_break = (int) 0 $count_variable_nnt = (int) 0 $message_nnt = '' $field = 'time_value' $array_get = array() $tempt = array( (int) 0 => '1/2', (int) 1 => '1/3', (int) 2 => '1/4', (int) 3 => '1/5', (int) 4 => '2/5', (int) 5 => '3/8', (int) 6 => '3/7' ) $list_name_array = array( (int) 0 => 'males' ) $list_array_item = array( 'males' => array( 'listArray' => array( (int) 0 => 'males', (int) 1 => 'females' ), 'keyArray' => (int) 0, 'manyArray' => '2', 'capitalize' => '2' ) ) $list_italic = array() $array_variable = object(stdClass) { 1513407166339 => object(stdClass) {} 1513407176314 => object(stdClass) {} 1513407195491 => object(stdClass) {} 1515729306353 => object(stdClass) {} 1513407214020 => object(stdClass) {} 1517280683500 => object(stdClass) {} } $question_content = 'In a $(cooking) class, $(f1) are $(males) and the <span style="color: #000000;">rest are</span> $(females). After $(n20) $(males) left the class, there are $(f2) as many $(males) as $(females). How many people were there in the $(cooking) class at first?' $solution_step = '<table style="height: 88px;" width="641"> <tbody> <tr> <td style="text-align: center;"> </td> <td style="text-align: center;">$(Females)</td> <td style="text-align: center;">$(Males)</td> </tr> <tr> <td style="text-align: center;">Before</td> <td style="text-align: center;"><span style="color: #993300;">$(nn1)</span><sub>x$(l2) </sub>= <br />$(a1) u</td> <td style="text-align: center;"><span style="color: #000000;">$(n3)</span><sub>x$(l2) </sub>= <br />$(b1) u</td> </tr> <tr> <td style="text-align: center;">Change</td> <td style="text-align: center;"> </td> <td style="text-align: center;">- $(n20) </td> </tr> <tr> <td style="text-align: center;">After</td> <td style="text-align: center;"><span style="color: #993300;"> $(n2)</span><sub>x$(l1)</sub> = <br />$(a2) u</td> <td style="text-align: center;"><span style="color: #000000;">$(n1)</span><sub>x$(l1)</sub> = <br />$(b2) u</td> </tr> </tbody> </table> <br />The number of $(females) remains unchanged.<br /><br />Change in the number of $(males) <br />= $(b1) u - $(b2) u<br />= $(gu) u<br /><br />$(gu) u = $(n20)<br />1 u = $(n20) ÷ $(gu) = $(1u)<br /><br />Number of people at first<br />= $(t) u<br />= $(t) x $(1u)<br />= $(n30)<br /><br />Answer(s): $(n30)' $clone_answer = '$(n30) ' $formula = array( (int) 0 => 'array_capitalize(2,$(males))=$(Males) ', (int) 1 => 'array_capitalize(2,$(females))=$(Females) ', (int) 2 => 'get_numerator($(f1))=$(n3) ', (int) 3 => 'get_denominator($(f1))=$(n4)', (int) 4 => 'get_numerator($(f2))=$(n1) ', (int) 5 => 'get_denominator($(f2))=$(n2) ', (int) 6 => '$(n4) - $(n3) = $(nn1)', (int) 7 => 'get_lcm($(nn1),$(n2))=$(lcm)', (int) 8 => '$(lcm)/$(n2)=$(l1)', (int) 9 => '$(lcm)/$(nn1)=$(l2)', (int) 10 => '$(nn1)*$(l2) = $(a1)', (int) 11 => '$(n3)*$(l2) = $(b1)', (int) 12 => '$(n2)*$(l1) = $(a2)', (int) 13 => '$(n1)*$(l1) = $(b2)', (int) 14 => '$(b1) - $(b2) = $(gu)', (int) 15 => 'if(more_than($(gu)>1)) continue', (int) 16 => '$(b1) - $(b2) = $(gu)', (int) 17 => '$(1u) * $(gu) = $(n20)', (int) 18 => '$(n4)*$(l2) = $(t)', (int) 19 => '$(t) *$(1u) = $(n30)', (int) 20 => '', (int) 21 => '', (int) 22 => '' ) $formula_1 = array( (int) 0 => 'array_capitalize(2,$(males))=$(Males) ', (int) 1 => 'array_capitalize(2,$(females))=$(Females) ', (int) 2 => 'get_numerator($(f1))=$(n3) ', (int) 3 => 'get_denominator($(f1))=$(n4)', (int) 4 => 'get_numerator($(f2))=$(n1) ', (int) 5 => 'get_denominator($(f2))=$(n2) ', (int) 6 => '$(n4) - $(n3) = $(nn1)', (int) 7 => 'get_lcm($(nn1),$(n2))=$(lcm)', (int) 8 => '$(lcm)/$(n2)=$(l1)', (int) 9 => '$(lcm)/$(nn1)=$(l2)', (int) 10 => '$(nn1)*$(l2) = $(a1)', (int) 11 => '$(n3)*$(l2) = $(b1)', (int) 12 => '$(n2)*$(l1) = $(a2)', (int) 13 => '$(n1)*$(l1) = $(b2)', (int) 14 => '$(b1) - $(b2) = $(gu)', (int) 15 => 'if(more_than($(gu)>1)) continue', (int) 16 => '$(b1) - $(b2) = $(gu)', (int) 17 => '$(1u) * $(gu) = $(n20)', (int) 18 => '$(n4)*$(l2) = $(t)', (int) 19 => '$(t) *$(1u) = $(n30)', (int) 20 => '', (int) 21 => '', (int) 22 => '' ) $criterion = array( (int) 0 => '', (int) 1 => '', (int) 2 => '', (int) 3 => '', (int) 4 => '', (int) 5 => '', (int) 6 => '', (int) 7 => '', (int) 8 => '', (int) 9 => '', (int) 10 => '', (int) 11 => '', (int) 12 => '', (int) 13 => '', (int) 14 => '', (int) 15 => '', (int) 16 => '', (int) 17 => '', (int) 18 => '', (int) 19 => '', (int) 20 => '', (int) 21 => '', (int) 22 => '' ) $type_criterion = array( (int) 0 => '', (int) 1 => '', (int) 2 => '', (int) 3 => '', (int) 4 => '', (int) 5 => '', (int) 6 => '', (int) 7 => '', (int) 8 => '', (int) 9 => '', (int) 10 => '', (int) 11 => '', (int) 12 => '', (int) 13 => '', (int) 14 => '', (int) 15 => '', (int) 16 => '', (int) 17 => '', (int) 18 => '', (int) 19 => '', (int) 20 => '', (int) 21 => '', (int) 22 => '' ) $time_value = array( (int) 0 => '1516176221503', (int) 1 => '1517289208650', (int) 2 => '1513408191396', (int) 3 => '1513407293719', (int) 4 => '1513407309744', (int) 5 => '1513407353111', (int) 6 => '1517280173854', (int) 7 => '1513407368812', (int) 8 => '1513407389481', (int) 9 => '1517242742090', (int) 10 => '1513407390151', (int) 11 => '1513407416432', (int) 12 => '1516529294600', (int) 13 => '1513407453326', (int) 14 => '1513407501591', (int) 15 => '1517282391705', (int) 16 => '1516176727730', (int) 17 => '1513407530992', (int) 18 => '1513407537309', (int) 19 => '1513407563144', (int) 20 => '1513407582419', (int) 21 => '1517221353582', (int) 22 => '1517242460477' ) $k = '1515729306353' $v = object(stdClass) { cate => 'items' name => 'cooking' range => '77' attr => object(stdClass) {} } $array_system = null $dem_array_trung = (int) 1 $value_rand_check = (int) 0 $value_check = 'males' $tempt_k = (int) 6 $tempt_v = '3/7' $result_rand_frac = '3/8' $findme = '/' $search_frac = (int) 1 $frac_show = array( (int) 0 => '3', (int) 1 => '8' ) $reduce_to_lowest = array( (int) 0 => (int) 3, (int) 1 => (int) 8 ) $search_frac_1 = (int) 1 $value_rand_1 = '3/8' $frac_show_1 = array( (int) 0 => '3', (int) 1 => '8' ) $arr_variable = array( 'f1' => '3/7', 'f2' => '3/8', 'males' => 'males' )array_rand - [internal], line ?? CommonComponent::generateAdvClone() - APP/Controller/Component/CommonComponent.php, line 314 ClonesController::index2() - APP/Controller/ClonesController.php, line 2226 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167 [main] - APP/webroot/index.php, line 119
The reports are available for Premium members only.
Why use limited features when you can enjoy full features and excel in Math?
There’s no risk. Cancel any time.
Let's start my subscription now.
When you click the Next button, you will be given 1-minute grace period to decide whether to do the next question type.
The question will be marked as incorrect if you exceed 1 minute and leave the question page.
Click the Back button instead if you would like to return to the topic page.
Date:24 Sep 2024
Topic:FRACTIONS
Question Number:P4.FR.JM.17101799-A1
Student:
Class:
Level:
School:
A password link has been sent to the Child's Email:
Please click the link to reset the Child's Password.