wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Internet and Mobile Programming Final Review

Total questions: 96

Worksheet time: 48mins

Name
Class
Date
1.

What is the full form of SDK?

a)

SOFTWARE DEVICE KIT

b)

SYSTEM DEVELOPMENT KIT

c)

SOFTWARE DEVELOPMENT KIT

d)

SOFTWARE DEVICE KIT

2.

We require an AVD to create an emulator . What does AVD stands for?

a)

ACTIVE VIRTUAL DISPLAY

b)

ANDROID VIRTUAL DEVICE

c)

ANDROID VIRTUAL DISPLAY

d)

ACTIVE VIRTUAL DEVICE

3.

In Android studio which layout is the default layout in XML

a)

LINEAR LAYOUT

b)

RELATIVE LAYOUT

c)

CONSTRAIN LAYOUT

d)

ABSOLUTE LAYOUT

4.

Antroid Toast is used to display the information for a short period of time.

a)

TRUE

b)

FALSE

5.

Which Android Studio file is most of the app coding done in?

a)

MainActivity.java

b)

Activity_main_xml

c)

AndroidManifest.xml

6.

Android is based on which kernel?

a)

Linux

b)

Mac

c)

Windows

d)

Symbian

7.

Android is based on linux for the following reason:

a)

Security

b)

Networking

c)

Portability

d)

All of these

8.

Which programming language is used for Android Application Development?

a)

C#

b)

PHP

c)

Java & Kotlin

d)

Phyton

9.

In which directory XML layout files are stored?

a)

/res/drawable

b)

/src

c)

/res/values

d)

/res/layout

10.

While Java or Kotlin source files stored in ....

a)

/res/drawable

b)

/src

c)

/res/values

d)

/res/layout

11.

During an activity life cycle, what is the first callback method invoked by the system?

a)

onStart()

b)

onCreate()

c)

onPause()

d)

onStop()

12.
TCP socket programming is:
a)
connection-oriented
b)
connectionless
c)
dependent on the host operating system
d)
dependent on the client operating system
13.
Sockets are different from ports because
a)
They included IP addresses
b)
They are in the Application Layer
c)
They use the OSI model
d)
They are just another term for the same thing
14.
Socket programming can only be done in Java.
a)
True
b)
False
15.

TCP Client should known which information

a)

Server port number

b)

Client IP Address

c)

Server IP Address

d)

Server IP Address and Port Number

16.
Single-thread TCP sockets are used for
a)
One server - one client communications
b)
One server - multiple client communications
c)
e-mail distribution
d)
social media
17.
Multi-thread socket programming allows for
a)
Servers to connect with multiple clients
b)
Clients to connect to multiple servers simultaneously
c)
Both of these
d)
Neither of th
18.

Which method is used to make main thread to wait for all child threads

a)

Join ()

b)

Sleep ()

c)

Wait ()

d)

Stop ()

19.

Which will contain the body of the thread and task to do?

a)

Start()

b)

Run()

c)

Main()

d)

Execute()

20.

The life cycle of a thread in java is controlled by

a)

JRE

b)

JDK

c)

JVM

d)

None

21.

Thread priority in Java is?

a)

Integer

b)

Float

c)

Double

d)

Long

22.

Q) What is maximum thread priority in Java

a)

10

b)

12

c)

5

d)

8

23.

Q) Which method is used to check if a thread is running?

a)

isAlive()

b)

run ()

c)

alive ()

d)

keepAlive()

24.

Q) Min and Max priority of a thread in Java multithreading are

a)

1, 10

b)

0,10

c)

0,255

d)

1,256

25.
What is sometimes also called a lightweight process?
a)
Thread
b)
Process
c)
JVM
26.

Thread is _____________process that can run independently

a)

heavyweight

b)

lightweight

c)

compaction

d)

compression

27.

Choose THREE(3) benefits of multithreaded processing

a)

scalability

b)

resource sharing

c)

privacy

d)

responsiveness

28.

In the JavaFX framework which notation do you use to connect Scene builder Controls to the Java class?

a)

@FXML

b)

@Override

c)

@Connect

d)

@JFXML

29.

What is the correct syntax for creating a button in a JavaFX's project class.

a)

Button btn = new Button();

b)

button btn = new button();

c)

Btn button = new Btn();

d)

btn button = new btn();

30.

Which method can you use to disable a button?

a)

getDisable()

b)

Disable()

c)

setDisable()

d)

Stop()

31.

Which method do you use to style components (containers, controls, etc) in JavaFX's project class.

a)

myStyle()

b)

setStyle()

c)

getStyle()

d)

Style()

32.

Is String a primitive data type?

a)

Yes

b)

No

33.

What do we call an object that waits for a specific event to happen?

a)

event

b)

listener

c)

container

d)

component

34.

What do we call the thing that happens whenever the user interacts with the components on the screen?

a)

event

b)

listener

c)

container

d)

component

35.

You can have nested panes in JavaFX

a)

True

b)

False

36.

To change rectangle color, we use….

a)

rec.Fill(GREEN)

b)

rec.Fill(Color.GREEN)

c)

rec.setFill(GREEN)

d)

rec.setFill(Color.GREEN)

37.

To make animation reverse direction we set autoReverse to true

a)

True

b)

False

38.

To handle user interaction through keyboard, we use...

a)

setKeyPressed

b)

setOnKeyPressed

c)

setOnPressed

d)

none of these

39.

To check which key is pressed, we use...

a)

getButton

b)

getKey

c)

getCode

d)

none of these

40.

Suppose A is an inner class in Test. A is compiled into a file named.....

a)

A.class

b)

Test$A.class

c)

A$Test.class

41.

Button btOK = new Button("OK");

btOK.setOnAction(e -> System.out.println("OK 1"));

btOK.setOnAction(e -> System.out.println("OK 2"));

a)

When clicking the button, the program displays OK1 OK2.

b)

When clicking the button, the program displays OK1.

c)

When clicking the button, the program displays OK2.

d)

The program has a compile error, because the setOnAction method is invoked twice

42.

Initially, the JavaFX project was recognized as Form Follows Functions?

a)

True

b)

False

43.

Which one of these is not part of the JavaFX graphics engine?

a)

Prism

b)

Glass

c)

Media

d)

Scene graph

44.

JavaFX API is the bottommost layer of JavaFX architecture

a)

True

b)

False

45.

The part oJavaFx API that is responsible for application styling is....?

a)

javafx.animation

b)

javafx.css

c)

javafx.scene

d)

javafx.geometry

46.

All the GUI Applications in JavaFX are made using a Scene Graph only. A single component in a scene graph is known as a ____

a)

item

b)

element

c)

node

d)

object

47.

Swing and JavaFX are replaced by the AWT platform for developing rich Internet applications?

a)

True

b)

False

48.

In this statement, d1.bind(d2);

a)

d1 is the target and d2 is the source

b)

d2 is the target and d1 is the source

c)

Both of them are targets and sources

d)

None of these

49.

In this statement, d1.bindBidirectional(d2);;

a)

d1 is the target and d2 is the source

b)

d2 is the target and d1 is the source

c)

Both of them are targets and sources

d)

None of these

50.

To assign a button "btOK" to a Pane "pane", we write___

a)

pane.add(btOK);

b)

pane.getChildren().add(btOK);

c)

pane.setChildren().add(btOK);

d)

None of these

51.

To change the pane border color to red, we pass _____ parameter to setStyle

a)

-fx-border: red

b)

-fxborder-color: red

c)

-fx-background-color: red

d)

-fx-border-color: red

52.

Which listener is called for the device to register the enter key press?

a)

OnHoverListener

b)

OnKeyListener

c)

OnClickListener

d)

OnContextClickListener

53.

Which folder do you copy and paste an image into?

a)

Resources

b)

Java

c)

Drawable

d)

Layout

54.

Which is correct for using any image with the name "trainstation"?

a)

Android:src="trainstation"

b)

Src=@drawable/trainstation

c)

Android:src="@drawable/trainstation"

d)

Android:"@drawable/trainstation"

55.

Which one is not a nickname of an Android version?

a)

Cupcake

b)

Pie

c)

Nougat

d)

Menthos

56.

What does "HAL" stand for?

a)

Hello, Android Lovers

b)

Hardware Abstraction Layer

c)

It's a reference to the HAL 9000 computer

d)

Hardware Advancement Level

57.

What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?

a)

findViewByReference(int id)

b)

retrieveResourceById(int id)

c)

findViewById(int id)

d)

findViewById(String id)

58.

What is the parent class of all Activity widgets?

a)

Layout

b)

ViewGroup

c)

View

d)

Widget

59.

What does the Android project folder “res/” contain?

a)

Resource files

b)

Java Activity classes

c)

Java source code

d)

Libraries

60.

Gradle is the build system used in Android Studio. It builds, tests, runs, and packages your apps

a)

True

b)

False

61.

most of UI is defined in............ files

a)

PHP

b)

CSS

c)

XML

d)

CCS

62.

A layout that defines the position for each view based on constraints to sibling views and the parent layout

a)

TextView

b)

Activity_main

c)

Pick a Resource

d)

ConstraintLayout

63.

what keyword represents actions that usually involve opening another activity?

a)

onClickListener

b)

intent

c)

MainActivity

d)

androidManifest

64.

Which language is specifically used for the User Interface (UI) portion of Android app development?

a)

xml

b)

java

c)

c#

d)

kotlin

65.

Which type of layout can use either horizontal or vertical orientations?

a)

relative layout

b)

linear layout

66.

8. What is Manifext.xml in Android?

a)

It has information about layout in an application

b)

It has all the information about an application

c)

It has the information about activities in an application

d)

None of the above

67.

10. What does API stands for?

a)

Application programming interface

b)

Algorithmic Protocol Interface

c)

Accellerated Programming Interface

d)

None of above

68.

what is a Density-Independent Pixel?

a)

a flexible number of unit of pixels that change with the screen size

b)

a fixed number of pixels regardless of the screen size

69.
___________ view shows your files and folders structured in a way that is convenient for working with an Android project.
a)
a.       Attributes
b)
b.       Project 
c)
c.       java 
70.
___________ folder. All your Java language files are organized here.
a)
a.       Project 
b)
b.       Attributes
c)
c.       java 
71.
___________ This folder contains the Java source code files for your app.
a)
a.       com.example.myfirstapp (androidTest): 
b)
b.       com.example.myfirstapp:
c)
c.       com.example.myfirstapp (test): 
72.
The ___________ starts and boots just like a physical device. Depending on the speed of your computer, this may take a while
a)
a.       Emulator
b)
b.       Constraints
c)
c.       Attributes
73.
On the left is a (1.___________) of views you can add to your app.
a)
a.       Design editor 
b)
b.       Palette
c)
c.       Attributes
d)
d.       Component Tree
74.
Below that is a (2.___________) showing the views currently in this file, and how they are arranged in relation to each other.
a)
a.       Design editor 
b)
b.       Palette
c)
c.       Attributes
d)
d.       Component Tree
75.
In the center is the (3.___________) which shows a visual representation of what the contents of the file will look like when compiled into an Android app.
a)
a.       Design editor 
b)
b.       Palette
c)
c.       Attributes
d)
d.       Component Tree
76.
In the upper right corner of the Design editor, above (4.___________)
a)
a.       Design editor 
b)
b.       Palette
c)
c.       Attributes
d)
d.       Component Tree
77.
The id for a view helps you identify that view distinctly from other views.
a)
a.       True
b)
b.       False
78.
You can use Android Studio to test your apps with a large range of preconfigured emulators, or on your own mobile device.
a)
a.       True
b)
b.       False
79.

Which one is not a nickname of an Android version?

a)

Cupcake

b)

Pie

c)

Nougat

d)

Menthos

80.

What is Log message in android?

a)

Log message is used to debug a program

b)

Same as printf()

c)

Same as Toast()

d)

None of the above

81.

What attribute will use to increase the size of the text?

a)

app:textSize

b)

android:textSize

c)

tools:textSize

d)

None of the above

82.

Android is

a)

Web server

b)

Operating system

c)

Web browser

d)

None of these

83.

Which view we need to use if we want take input from user?

a)

TextView

b)

EditText

c)

InputText

d)

Button

84.

Q) Number of threads in below java program is

public class ThreadExtended extends Thread {


public void run() {

System.out.println("\nThread is running now\n");

}


public static void main(String[] args) {


ThreadExtended threadE = new ThreadExtended();


threadE.start();

}

}

a)

0

b)

1

c)

2

d)

3

85.

Q) Execution of a java thread begins on which method call?

a)

Start ()

b)

Run ()

c)

Execute ()

d)

Launch ()

86.

What is the priority of the thread in the following Java Program?

class multithreaded_programing {

public static void main(String args[])

{

Thread t = Thread.currentThread(); System.out.println(t);

}

}

a)

4

b)

5

c)

0

d)

1

87.

I am a........

a)

BorderPane

b)

FlowPane

c)

VBox

d)

HBox

88.

The individual elements in a JavaFx scene are called nodes

a)

True

b)

False

89.

Identify the control pointed at.

a)

Image

b)

Button

c)

Label

d)

TextBox

90.

What is the unique address assigned to each device

a)

DNS address

b)

IP address

c)

FTP address

d)

Home address

91.

What is the correct order of the 3 phases in Server sockets?

a)

Connection, Data Transfer, Close the connection

b)

Data transfer, connection, close the connection

c)

Connection, close the connection, data transfer

d)

Close the connection, data transfer, connection

92.

Which among the two must be write the code first to run

a)

Client

b)

Server

93.

Function to accept the request of client to join the server

a)

server.connected()

b)

server.add()

c)

server.accept()

d)

server.join()

94.

........................is known as passive socket

a)

Client Socket

b)

Server Socket

c)

Port Socket

d)

none of the above

95.

Which socket function is responsible for freeing up the ports used by the socket?

a)

socket open

b)

socket send

c)

socket bind

d)

socket close

96.
A stream is
a)
A TCP data transport link
b)
A group of socket connections
c)
A group of packets
d)
A UDP transport link