logo

Crowdly

25_HESSO-VS_SI_Informatique SYND

Шукаєте відповіді та рішення тестів для 25_HESSO-VS_SI_Informatique SYND? Перегляньте нашу велику колекцію перевірених відповідей для 25_HESSO-VS_SI_Informatique SYND в cyberlearn.hes-so.ch.

Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!

Here is a diagram of the Car class:

Complete the following text to obtain this output:

import Car.Car;

import java.awt.*;

public class Main {

    public static void main(String[] args) {

        // Initialisation of my new car

        Car Ferrari = new Car(, 0, , Color.red);

        // Modification of the car power (ch)

        Ferrari.(720);

        System.out.println("My car is a "++" which has a power of "++" ch.");

        System.out.println("Its maximum velocity is "++" km/h.");

        System.out.println("The color of my car is "+);

    }

}

Переглянути це питання

Here is a diagram of the Car class:

Complete the following text to obtain this output:

import Car.Car;

import java.awt.*;

public class Main {

    public static void main(String[] args) {

        // Initialisation of my new car

        Car Ferrari = new Car(, 0, , Color.red);

        // Modification of the car power (ch)

        Ferrari.(720);

        System.out.println("My car is a "++" which has a power of "++" ch.");

        System.out.println("Its maximum velocity is "++" km/h.");

        System.out.println("The color of my car is "+);

    }

}

Переглянути це питання

What is the Big O space complexity of this algorithm?

Example:

int n = 10;

float sum = 0.0f;

for (int i = 0; i < n; i++) {

    int k = i*2 + i - n;

    sum += (float)k + 1.0f;

}

System.out.println(sum);

0%
0%
0%
Переглянути це питання

What is the Big O time complexity of this algorithm?

Example:

for (int i = 0; i < n; i++) {

    for (int j = 0; j < 1; j++){

        for (int k = 0; k < 1; k++){

            System.out.println("Hello World!");

        }

    }

}

0%
0%
0%
0%
Переглянути це питання

What is the Big O space complexity of this algorithm?

Example:

int n = 10;

float[] sum = new float[n];

for (int i = 0; i < n; i++) {

    sum[i]= (float)52 * (float)i + 1.0f;

}

System.out.println(sum[n-1]);

Переглянути це питання

What is the Big O time complexity of this algorithm?

Example:

for (int i = 0; i < n; i++) {

    for (int j = 0; j < n; j++){

        int k = i*2 + j - n;

        System.out.println("Hello World!");

    }

}

Переглянути це питання

What is the Big O time complexity of this algorithm?

i = 0;

while (i < n) {

    if (i == 3) {

        for (int j = 0; j < n; j++){

            System.out.println("Hello World!");

        }

    }

}

Переглянути це питання

Which of the following suggested variable names are correct?

Переглянути це питання

What is the space complexity (BigO) of this algorithm?

Note: the algorithm is described in pseudo-code. The input array arr is an array of size 40

In your calculation, do NOT consider the space used by the input array.

bubbleSort(arr)

    n <- arr.length

    for i from 0 to n - 1

        for j from 0 to n - i - 1

            if arr[j] > arr[j + 1]

                swap(arr[j], arr[j + 1])

0%
0%
0%
0%
0%
Переглянути це питання

What is the space complexity (BigO) of this algorithm?

Note: the algorithm is described in pseudo-code. The input array arr is an array of size n

In your calculation, do NOT consider the space used by the input array.

countDuplicates(arr)

    duplicates <- 0

    sortedArr <- sort(arr) // here we sort the array 

    for i from 1 to arr.length - 1

        if sortedArr[i] = sortedArr[i-1]

            duplicates <- duplicates + 1

    return duplicates

0%
100%
0%
0%
0%
Переглянути це питання

Хочете миттєвий доступ до всіх перевірених відповідей на cyberlearn.hes-so.ch?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!