wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PreExam IT

Total questions: 105

Worksheet time: 9hrs 45mins

Name
Class
Date
1.

What is the default port of the MQTT protocol?

a)

1883

b)

8080

c)

8000

d)

8888

2.

Layout or design of an android application is saved in...

a)

.text file

b)

.java file

c)

.dex file

d)

.xml file

3.

What is the output of the following C program?

a)

2

b)

3

c)

4

d)

All are wrong

4.

What is the output of the following C program?


a)

1 2 3 4

b)

1 2 4

c)

3

d)

None of those above

5.

Underlying operating system for Android is

a)

Linux

b)

Windows

c)

Contiki

d)

Ubuntu

6.

What is the output of the following C program?

a)

80

b)

30

c)

10

d)

None

7.

What is WRONG about C programming language:

a)

The interpreter Programming Language

b)

The compiler Programming Language

c)

The third Programming Language

d)

The structured Programming Language

8.

In gateway, to send a sensor value to the IoT Server server, which protocol is used?

a)

MQTT Publish

b)

MQTT Subscribe

c)

FTP Upload

d)

FTP Download

9.

What is (are) advantage(s) of the Edge Computation?

a)

Improve the system autonomous

b)

Reduce the processing delay of the system

c)

The system is more smarter with AI model at the Edge

d)

All are correct

10.

By default in android studio during app development, file that holds information about SDK, versions, application Id, etc. is

a)

build.gradle

b)

res/values

c)

res/layout

d)

AndroidManifest.xml

11.

What is the required library for the wait effect?

a)

import time

b)

import delay

c)

import pause

12.

What is the output of the following C program?

a)

1

b)

4

c)

10

d)

20

13.

What is the output of the following C program?

a)

3 - 4

b)

4 - 4

c)

4 - 3

d)

All are wrong

14.

Method is called
when service was created first-time using onStartCommand() or onBind() is

a)

onStart()

b)

onCreate()

c)

onRestart()

d)

startService()

15.

What is the central mechanism of the connection
between the IoT Gateway and the Feed?

a)

request/response

b)

ask/wait

c)

publish/subscribe

d)

Unable to determine

16.

What is the output of the following C program?

a)

10

b)

15

c)

7

d)

6

17.

What is the result after execution of the following code
if a is 10, b is 5, and c is 10?

a)

a = 10, c = 10

b)

a = 11, c = 10

c)

a = 10, c = 11

d)

a = 11, c = 11

18.

A compiler translates

a)

programming code into assembly code

b)

programming code into machine code

c)

processing time into manual time

d)

routine into subroutine

19.

Which of the following accesses the seventh element stored in array?

a)

array[6];

b)

array[7];

c)

array(7);

d)

array;

20.

In order to control an IoT device (ON/OFF for an LED or a Motor),
which protocol bellow is the most suitable?

a)

HTTP

b)

FTP

c)

MQTT

d)

All are correct

21.

The latency of data communication between the Feed and the IoT Gateway is:

a)

Fast

b)

Slow

c)

Average

d)

indeterminable

22.

To randomly generate an integer, what library is used in Python?

a)

import random

b)

import randint

c)

import rand

d)

All of them are wrong

23.

An interpreter translates

a)

A whole program into machine codes and then, executes them

b)

Every single instruction in a program into machine codes and then, executes this instruction

c)

According to a programming language, a or b can be correct

d)

All are correct

24.

What is the right statement concerning the Internet of Things networks?

a)

Numerous devices, wireless communications
and sharing/exchanging data

b)

Network topology is normally stable, communications are based on TCP/IP architecture

c)

All are correct

d)

All are wrong

25.

What will be the output of this program?

a)

a = 20, b = 20

b)

a = 10, b = 20

c)

a = 20, b = 10

d)

a = 10, b = 10

26.

What is the default port of the HTTP protocol?

a)

1883

b)

8080

c)

8000

d)

8888

27.

Concerning the Industrial 4.0, what is the name of the new Internet network?

a)

Internet of Machines

b)

Internet of Everything

c)

Internet of Things

d)

Internet of People

28.

What is the output of the following C program?

a)

10

b)

11

c)

100

d)

101

29.

What will the result of num1 variable
after execution of the following statements?

a)

11

b)

12

c)

13

d)

14

30.

According to a proposed architecture for Internet of Things,
there are FIVE different layers, what are they?

a)

Physics, Network Access, TCP/IP, Transport and Application layers

b)

Physic, Network Access, TCP, IP and Application layers

c)

Things, Connect, Collect, Learn and Do layers

d)

All are correct

31.

For a monitoring application based on IoTs and Android Things,
what are the typical components?

a)

Sensor nodes and Smart phone app

b)

Sensor nodes, gateway and Server

c)

Sensor nodes, gateway, Server and Smart phone app

d)

None of the above

32.

What is the output of the following C program?

a)

123

b)

123 12

c)

123 12 1

d)

123 12 1 0

33.

What is the output of the following C program?

a)

24

b)

12

c)

10

d)

4

34.

A method that is used to handle what happens after clicking a button is

a)

OnCreate

b)

onSelect

c)

onClick

d)

onClick

35.

What information is needed for Gateway programming?

a)

Feed Key

b)

Username

c)

Active Key

d)

All information above

36.

In order to upload a file to server, which protocol is used?

a)

MQTT

b)

HTTP

c)

FTP

d)

All are correct

37.

For a smartphone app,
when a toggle button, designed to control an LED, is clicked, the data is:

a)

Publish to the IoT Server

b)

Publish to the Python Gateway (running on a PC)

c)

All are correct

38.

What is WRONG about Python programming language:

a)

The interpreter Programming Language

b)

The compiler Programming Language

c)

The third Programming Language

d)

The OOP Programming Language

39.

Which of the following gives the memory ad-

dress of the first element in array?

a)

array[6];

b)

array[7];

c)

array(7);

d)

array;

40.

Which of these expressions
will make the right-most set bit zero in an input integer x?

a)

x = x | (x-1);

b)

x = x & (x-1);

c)

x = x | (x+1);

d)

x = x & (x+2);

41.

What is printed to the console?

a)

24

b)

12

c)

10

d)

4

42.

The concept of two functions with the same

name is known as?

a)

Operator Overloading

b)

Function Overloading

c)

Function Overriding

d)

Function renaming

43.

Which of these expressions will return true if

the input integer v is a power of two?

a)

(v | (v + 1)) == 0;

b)

(v | (v – 1)) == 0;

c)

(v & (v – 1)) == 0;

44.

An interpreter translates

a)

A whole program into machine codes

and then, executes them

b)

Every single instruction in a program

into machine codes and then, executes

this instruction

c)

According to a programming language,

a or b can be correct

d)

All are correct

45.

What is printed to the console?

a)

101

b)

10

c)

500

d)

None of them

46.

What is printed to the console?

a)

123

b)

123 12

c)

123 12 1

d)

123 12 1 0

47.

During system implementation the following

are done

a)

programs are written and tested with

operational data

b)

programmers are recruited and trained

c)

the system is tested with operational

data

d)

All are correct

48.

What is printed to the console?

a)

2 2 6 14

b)

14 12 12 8

c)

8 12 12 14

d)

None of them

49.

Among different steps to develop a program,

which step is the most time consumed?

a)

Program specification, design and code

b)

Program design and test

c)

Program specification, document and

maintenance

d)

Testing, document and maintenance

50.

How many main() function we can have in our

project?

a)

1

b)

2

c)

No Limit

d)

Depends on Compiler

51.

What will be the output of the following C++

code?

a)

-5

b)

10

c)

5

d)

0

52.

Most popular general-purpose programming

languages (PL) today, such as C, C++ or Java

belong to:

a)

The first generation PL

b)

The second generation PL

c)

The third generation PL

d)

The fourth generation PL

53.

Which of the given statements are false?

i. extern int func;

ii. extern int func2(int,int);

iii. int func2(int,int);

iv. extern class foo;

a)

iii and iv only

b)

ii and iii only

c)

only iv

d)

ii, iii and iv

54.

What is the return values of sizeof(char) and

sizeof(int)?

a)

1 and 4

b)

1 and 2

c)

1 and 8

d)

None of them

55.

What is the value of j at the end of
the execution?

a)

10

b)

7

c)

6

d)

4

56.

Which reference modifier is used to define the

reference variable?

a)

$

b)

#

c)

&

d)

@

57.

What will be the output of the following C++

code?

a)

Compiler error!

b)

30

c)

870

d)

Run time error

58.

What is printed to the console?

a)

80

b)

10

c)

30

d)

None of them

59.

What is the index number of the last element

of an array with 9 elements?

a)

8

b)

9

c)

0

d)

Programmer-defined

60.

Which compilation unit is responsible for

adding header files content
to the source code?

a)

Compiler

b)

Preprocessor

c)

Assembler

d)

Linker

61.

What is the right statement concerning the In-

ternet of Things networks?

a)

Numerous devices, wireless communi-

cations and sharing/exchanging data

b)

Network topology is normally stable,

communications are based on TCP/IP

architecture

c)

All are correct

d)

All are wrong

62.

What are the values of n1 and n2 after the

swap() function is called?

a)

n1 = 1, n2 = 2

b)

n1 = 2, n2 = 1

c)

n1 = n2 = 2

d)

None of them

63.

The most important attribute of a systems analyst is

a)

excellent programming skills

b)

very good hardware designing skills

c)

very good technical management skills

d)

very good writing skills

64.

What will be the output of
the following C++ code?

a)

6553

b)

6522

c)

6533

d)

12200

65.

What are the basic components in an moni-

toring applications based on Internet of Things

(IoTs) network?

a)

Sensors, Server

b)

Sensors, IoT Gateway, Server

c)

Computers, Router, Server, Smart-

phone apps

d)

Sensors, IoT Gateway, Server, Smart-

phone apps

66.

Which of the following correctly declares an array?

a)

int array[10];

b)

int array;

c)

array10;

d)

array array[10];

67.

What is the return values of sizeof(float) and

sizeof(double)

a)

1 and 8

b)

2 and 8

c)

4 and 8

d)

None of them

68.

Some critical issues in the Internet of Things

network are:

a)

The energy sources for a huge number

of connected devices

b)

There are many wireless standards and

none of them is the best for many kinds

of IoTs applications

c)

The network topology is normally

changed due to mobility devices

d)

All of above

69.

What is printed to the console?

a)

1 2 3 4

b)

1 3 2 4

c)

1 2 4

d)

None of them

70.

Which of the following is important in

a function?

a)

Return type

b)

Function name

c)

Both return type and function name

d)

The return type, function name and

parameter list

71.

Which format is used to store and transmit

numbers inside a computer system?

a)

Decimal form

b)

Binary form

c)

ASCII code form

d)

Alphanumeric form

72.

What is printed to the console?

a)

1 2 3 4

b)

1 3 2 4

c)

1 2 4

d)

None of them

73.

What is the correct definition of an array?

a)

An array is a series of elements of the

same type in contiguous memory locations

b)

An array is a series of element

c)

An array is a series of elements of

the same type placed in non-contiguous

memory locations

d)

An array is an element of the different

type

74.

What is printed to the console?

a)

2048

b)

8402

c)

22614

d)

None of them

75.

Which of the following is a correct identifier in

C++?

a)

7var_name

b)

7VARNAME

c)

VAR_1234

d)

$var_name

76.

What are the values of all elements in the array

after this program?

a)

1 2 3 4 5

b)

5 4 3 2 1

c)

1 4 3 2 5

d)

None of them

77.

Which instruction is executed by C/C++ Preprocessor?

a)

#include<iostream>

b)

return 0

c)

void main(int argc , char ** argv)

d)

None of above

78.

Which of the following is used for comments in

C++?

a)

// comment

b)

/* comment */

c)

both // comment or /* comment */

d)

// comment */

79.

Concerning the Industrial 4.0, what is the name

of the new Internet network?

a)

Internet of Machines

b)

Internet of Everything

c)

Internet of Things

d)

Internet of People

80.

Numbers are stored and transmitted inside a computer in which format?

a)

decimal form

b)

binary form

c)

ASCII code form

d)

alphanumeric form

81.

What is output of below code?

a)

8,8

b)

8,9

c)

9,9

d)

0,0

82.

What is output of the second cout?

a)

Total value is :300

b)

Total value is :120

c)

Both answers above are correct

d)

Both answers above are incorrect

83.

What should be the output of this program:

a)

3.33

b)

3.0

c)

3

d)

0

84.

What is output of below program?

a)

10

b)

Compilation Error

c)

11

d)

0

85.

What is printed to the console?

a)

4-7

b)

3-5

c)

6-5

d)

None of them

86.

The computer or system peripherals
that receives data from processing unit are called...

a)

Input Devices

b)

Output Devices

c)

Both (A) and (B)

d)

None of the Above

87.

Arduino Uno is :

a)

A small scale of a micro-processor

b)

A micro controller system

c)

A ROM chip

d)

All of above

88.

What is printed to the console?

a)

4-7

b)

3-5

c)

6-5

d)

None of them

89.

It starts with a /* and continues until a */

What does this do?

a)

Loads a sketch

b)

Makes comments

c)

Compiles quicker

d)

Makes stars appear

90.

Before your program “code” can be sent to the board,
it needs to be converted into instructions that the board understands.
This process is called...

a)

Stop

b)

Compile

c)

Create sketch

d)

Serial monitor

91.

What is output of this program?

a)

I am One

b)

I am Two

c)

I am Three

d)

I am not 1, 2 and 3.

92.

What is the value of sum printed to the console?

a)

15

b)

10

c)

9

d)

None of them

93.

What is printed to the console?

a)

3-3

b)

3-5

c)

5-3

d)

5-5

94.

What is printed to the console?

a)

4-7

b)

4-5

c)

6-5

d)

None of them

95.

What will be the output of the following C

code?

a)

1 2

b)

Compile time error

c)

1 2 1 2

d)

Depends on the compiler

96.

...is the signal or data received by the system:

a)

Error

b)

Exception

c)

Output

d)

Input

97.

What is output of below program?

a)

5

b)

10

c)

15

d)

25

98.

In order to declare an array having 3 elements,

what is the correct answer?

a)

int array[3];

b)

int array[3] = {1,2,3};

c)

int array[] = {1,2,3};

d)

All of these above

99.

What are the values of a and b after executing

this program?

a)

a = 2, b = 3

b)

a = 4, b = 4

c)

a = 3, b =5

d)

None of them

100.

What is the meaning of below lines? void sum

(int, int);

a)

sum is function which takes int argu-

ments

b)

sum is a function which takes two int

arguments and returns void

c)

it will produce compilation error

d)

Can’t comment

101.

What is output of below program?

a)

0--01--12--23--34--

b)

00--10--20--30--40--

c)

00--01--02--03--04--

d)

Compilation Error

102.

...is comprised of programs that perform

specific tasks for users.

a)

Hardware

b)

Application software

c)

Free-ware

d)

System software

103.

What is output of the first cout?

a)

Total value is :120

b)

Total value is :300

c)

Both answers above are correct

d)

Both answers above are incorrect

104.

What is output of below program?

a)

55

b)

1

c)

0

d)

25

105.

What are printed to the screen of the bellow

program?

a)

1, 4, 7, 10

b)

1, 4, 7

c)

1, 4, 7

d)

1, 4, 7