AlgoProg - Review Quiz

AlgoProg - Review Quiz

University

20 Qs

quiz-placeholder

Similar activities

Java Programming

Java Programming

University

20 Qs

Array Addresses 2024

Array Addresses 2024

University

20 Qs

Milking Minds 2 17-01-24

Milking Minds 2 17-01-24

University

15 Qs

GNIDOC ROUND 1

GNIDOC ROUND 1

University

25 Qs

Sharda fest 2024

Sharda fest 2024

University

25 Qs

Pointers in C

Pointers in C

University

24 Qs

Pointers

Pointers

University

20 Qs

oop with c++

oop with c++

University

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
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?