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 PHP-ban a változók mindig erősen típusosak.

0%
100%
View this question

A kód Anna-t ír ki.

class Person {

    public $name;

    function __construct($n) {

        $this->name = $n;

    }

}

$p = new Person("Anna");

echo $p->name;

0%
0%
View this question

Mit ír ki az alábbi kód HTML-ben?

$users = [

    ["name" => "Anna", "age" => 25],

    ["name" => "Béla", "age" => 30]

];

foreach ($users as $user) {

    echo "<p>{$user['name']} ({$user['age']})</p>";

}

0%
0%
View this question

Hibát fog jelezni, mert $y nincs definiálva.

error_reporting(E_ALL);

$x = $y + 1;

0%
0%
View this question

A 10 kiírásra kerül.

class Test {

    private $a = 10;

    public function show() {

        echo $this->a;

    }

}

$t = new Test();

$t->show();

0%
0%
View this question

Az alábbi kódrészlet TRUE értéket ad ki.

$a = 5;

$b = "5";

var_dump($a == $b);

0%
0%
View this question
PHP-ban összefűzni a + operátorral lehet.
0%
0%
View this question

A kód hibát ad, mert az osztálynak nincs konstruktora.

class MyClass {}

$object = new MyClass();

0%
100%
View this question

A kód green-t ír ki.

$data = [

    "colors" => ["red", "green", "blue"]

];

echo $data["colors"][1];

100%
0%
View this question

A fenti kód 012-t ír ki.

$tomb = [0,1,2];

foreach ($tomb as $key){

    echo $key;

}

0%
0%
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