AlgoProg - Review Quiz

AlgoProg - Review Quiz

University

20 Qs

quiz-placeholder

Similar activities

Java Quiz 3

Java Quiz 3

University

15 Qs

Logika & Pemrograman (ID)

Logika & Pemrograman (ID)

10th Grade - Professional Development

20 Qs

2.4 - 2.6

2.4 - 2.6

University

15 Qs

4.6.4 Logic Gates

4.6.4 Logic Gates

10th Grade - Professional Development

15 Qs

7333-Redes e Comunicação de Dados

7333-Redes e Comunicação de Dados

University

15 Qs

CN_Minor2

CN_Minor2

University

20 Qs

Logic Based Testing

Logic Based Testing

University

15 Qs

File Extensions

File Extensions

9th Grade - Professional Development

20 Qs

AlgoProg - Review Quiz

AlgoProg - Review Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Eileen Heriyanni

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which one of assignment below is invalid?
x = y
x = y + 2
x = 1
x + 1 = 3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

4 0
4 7
4 16
4 23

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is the output of this slice of code?

float myFloat = 45.1342f;

printf("%09.3f", myFloat);

00045.134
000045.134
00000045.134
00000000045.134

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

what is the output of this slice of code?

char str[30]="Bina Nusantara";

printf("%-15s2024", str);

BinaNusantara-15s2024
Bina Nusantara 2024
Bina Nusantaras2024
Bina Nusantara

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assuming the user input is: 1053 17.5 42

What is the value of the variable val3 in this code?

scanf("%2d %f %d", &val1, &val2, &val3);

1053
42
17
17.5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Assuming the user input is: 1053 17.5 42 Smith

What is the value of the variable str2 in this code?

scanf("%s %d %s", str1, &val1, str2);

17
.5
42
Smith

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given the arithmetic operator:

g / -m * 2

which order will the operators be executed sequentially?

/ - *
* / -
- * /
- / *

Create a free account and access millions of resources

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?