wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

IEEE Coding Cybersecurity

Total questions: 27

Worksheet time: 1hrs 4mins

Name
Class
Date
1.

What is the OUTPUT?

boolean v1 = true;

boolean v2 = false;

System.out.println((v1 & v2));

a)

0

b)

1

c)

true

d)

false

2.

What is the OUTPUT?

String abc = "I" + "like" + "Java";

System.out.println(abc);

a)

I

b)

Java

c)

like

d)

IlikeJava

3.

What is the process of defining multiple methods inside the same class but with different parameters' list?

a)

Method Overriding

b)

Multiple Methods

c)

Method Overloading

d)

None of the above

4.

The following is a protocol for breaking and sending packets to an address across a network.

a)

DNS

b)

Socket

c)

Proxy Server

d)

TCP/IP

5.

Good hackers who help in finding vulnerabilities in a system are called

a)

White Hat Hackers

b)

Grey Hat Hackers

c)

Black Hat Hackers

d)

Red Hat Hackers

6.

What is the OUTPUT?

String abc = "I LIKE IEEE";

System.out.println(abc.length());

a)

9

b)

10

c)

11

d)

12

7.

_______________________ masks your IP address.

a)

Firewall

b)

Incognito mode

c)

VPN

d)

Antivirus

8.

_________________________ is the method of locating all DNS servers (and their associated records) for an organization.

a)

DNS enumeration

b)

DNS server hacking

c)

DNS server hacking

d)

DNS hacking

9.

What is the final value of x?

int x, y, z;

x = 1;

y = 2;

x = y = z = 5;

a)

1

b)

5

c)

2

d)

7

10.

What is the purpose of SSL certificate in HTTP?

a)

For making security weak.

b)

For sending and receiving emails unencrypted.

c)

For moving information faster.

d)

For encrypted data sent over HTTP protocol.

11.

Which of the following is an example of a strong password?

a)

MyCat'sName

b)

Cool15t

c)

12345678

d)

Tr1ck75t3r_c17y

12.

What does HTTPS stand for in a website URL?

a)

HyperText Transfer Protocol Server

b)

HyperText Transfer Protocol Security

c)

High-Tech Security Protocol

d)

Hypertext Transfer Page Security

13.

What are the two common hash functions?

a)

MD5

b)

RSA

c)

SHA

d)

Phishing

14.

Which three protocols use asymmetric key algorithms?

a)

SSH

b)

PGP

c)

SSL

d)

AES

15.

What is the OUTPUT?

char v1 = 'A';

char v2 = 'a';

System.out.println((int)v1 + " " + (int)v2);

a)

67 95

b)

65 97

c)

162

d)

66 98

16.

What is the OUTPUT?

int i = 0;

int j = i++ + i;

System.out.printf("%d\n", j);

a)

1

b)

0

c)

error

d)

2

17.

What is the OUTPUT?

int a = 10;

System.out.printf("%d", a);

int a = 20;

System.out.printf("%d",a);

a)

10 20

b)

10 10

c)

error

d)

20

18.

What is the OUTPUT?

int i = 1;

System.out.println(i++);

System.out.println(i);

System.out.println(++i);

a)

1

2

2

b)

2

2

3

c)

2

2

2

d)

1

2

3

19.

What is the OUTPUT?

int a = 10/3;

System.out.printf("%d",a);

a)

0

b)

3.3333

c)

infinity

d)

3

20.

What is the OUTPUT?

int i;

for(i = 0 ; i < 5; i++){ }

System.out.println(i);

a)

5

b)

4

c)

0

d)

1

21.

Data availability can be maintained by

a)

Data Altering

b)

Data Backup

c)

Data Recovery

d)

Data Clustering

22.

Which code will give the below OUTPUT?

4 3

a)

char letters[] = {'a', 'b', 'c'};

String s = new String(letters);

String s1 = "abcd";

int r = s1.length();

int r1 = s.lemgth();

System.out.println(r + " " + r1);

b)

char letters[] = {'a', 'b', 'c'};

String s = new String(letters);

String s1 = "abcd";

int r = s.length();

int r1 = s1.length();

System.out.println(r + " " + r1);

c)

char letters[] = {'a', 'b', 'c'};

String s = new String(letters);

String s1 = "abcd";

int r = s.length();

int r1 = s.length();

System.out.println(r + " " + r1);

d)

char letters[] = {'a', 'b', 'c'};

String s = new String(letters);

String s1 = "abcd";

int r = s1.length();

int r1 = s1.length();

System.out.println(r + " " + r1);

23.

Write a program that takes in a password from user and checks if it is a strong password. A strong password includes the following:

  • * at least 10 characters

  • * contains at least one digit

  • * contains at least one upper case

  • * contains at least one lower case

  • * contains at least one special character (eg: %, *)

4 lines
24.

Write a program that takes in a fixed number N of student ID numbers from the user, and checks if any of the ID numbers is fake. Student ID numbers need to start with the digit 2 and have 9 digits in total. For example: 202300300.

4 lines
25.

Write a program to check if a URL entered by the user is secure or not. A URL is secure if it starts with "https".

4 lines
26.

Design a program that encrypts a text using Caesar Cipher algorithm. According to this encryption algorithm, every letter is shifted by 3. For example: a becomes d, b becomes e and so on.

4 lines
27.

Print the word "IEEE" N times using a loop. The number N is entered by the user.

4 lines