Search Header Logo

Lec3 - Part2

Authored by Malak Ahmed

Information Technology (IT)

University

Used 2+ times

Lec3 - Part2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

Why does Android allow services to run in the background, while early iOS did not?

Android services are pre-installed by the system

Android uses less battery than iOS

Android supports more flexible multitasking using services

iOS didn’t support memory allocation

2.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

Which of the following best describes a zombie process?

A process that was suspended and never resumed

A child process that is still running without its parent

A terminated process that hasn't been collected by its parent

A process without access to memory

3.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

What happens if a parent terminates without calling wait() for its child process?

The child is forced to terminate immediately

The child becomes an orphan and may be adopted by the init/system process

The child remains blocked forever

The OS restarts the parent automatically

4.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

Which best describes the role of a service in Android?

A graphical interface for background apps

A special type of process that controls CPU scheduling

A component that performs background tasks without a UI

A class used to stop processes on exit

5.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

If a child process finishes execution and the parent is not waiting, what happens to the PID and exit status?

They are reused by the system immediately

They remain in the process table as a zombie

They are discarded silently

The kernel blocks the parent until it collects the child

6.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

Which of the following best defines cascading termination?

Termination of parent causes suspension of child

Termination of parent causes all children to be terminated

Child kills parent and takes over PID

Processes terminate one after another in round robin

7.

MULTIPLE CHOICE QUESTION

30 mins • 1 pt

What is the difference between a zombie and an orphan process?

Zombie: running; Orphan: terminated

Zombie: no parent; Orphan: parent doesn’t wait

Zombie: terminated but not collected; Orphan: alive but parentless

Both mean the same

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

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

Already have an account?