logo

Crowdly

Browser

Add to Chrome

12.Backend programozás és tesztelés_SZFT5

Looking for 12.Backend programozás és tesztelés_SZFT5 test answers and solutions? Browse our comprehensive collection of verified answers for 12.Backend programozás és tesztelés_SZFT5 at moodle.njszki.hu.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

A kimenet lesz.

function add($a, $b) {

    return $a + $b;

}

echo add(2, "3");

0%
0%
View this question

Mi jelenik meg az alábbi ciklus futtatásakor?

$info = [

    "name" => "Éva",

    "age" => 28

];

foreach ($info as $key => $value) {

    echo "$key = $value\n";

}

0%
33%
0%
View this question

A declare(strict_types=1); kikapcsolja az automatikus típuskonverziót.

100%
0%
View this question

Az alábbi kód 0:10 1:20 2:30-at ír ki.

$arr = [10, 20, 30];

foreach ($arr as $key => $value) {

    echo "$key:$value ";

}

0%
0%
View this question

A kód Hello from parent-et ír ki.

class ParentClass {

    public function hello() {

        echo "Hello from parent";

    }

}

class ChildClass extends ParentClass {

    public function hello() {

        echo "Hello from child";

    }

}

$obj = new ChildClass();

$obj->hello();

0%
100%
View this question

A kód 13-at ír ki.

$arr = [1, 2, 3];

foreach ($arr as &$v) {

    $v += 10;

}

echo $arr[2];

100%
0%
View this question

Mi jelenik meg az alábbi kódból?

$kepek = [

    ["imgUrl" => "cat.jpg"],

    ["imgUrl" => "dog.jpg"]

];

foreach ($kepek as $k) :

?>

<img src="<?= $k->imgUrl ?>">

<?php endforeach; ?>

0%
0%
View this question

A szuperglobális változók nem érhetőek el a saját függvényben.

0%
100%
View this question

A kimenet teszt lesz.

class A {

    private $data = [];

    public function __set($name, $value) {

        $this->data[$name] = $value;

    }

    public function __get($name) {

        return $this->data[$name] ?? null;

    }

}

$a = new A();

$a->valami = "teszt";

echo $a->valami;

0%
0%
View this question

PHP-ban a változó neve kezdődhet számmal a '$' jel után.

0%
100%
View this question

Want instant access to all verified answers on moodle.njszki.hu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome