Font size
WorksheetsIEEE Coding Cybersecurity
Total questions: 27
Worksheet time: 1hrs 4mins
What is the OUTPUT?
boolean v1 = true;
boolean v2 = false;
System.out.println((v1 & v2));
0
1
true
false
What is the OUTPUT?
String abc = "I" + "like" + "Java";
System.out.println(abc);
I
Java
like
IlikeJava
What is the process of defining multiple methods inside the same class but with different parameters' list?
Method Overriding
Multiple Methods
Method Overloading
None of the above
The following is a protocol for breaking and sending packets to an address across a network.
DNS
Socket
Proxy Server
TCP/IP
Good hackers who help in finding vulnerabilities in a system are called
White Hat Hackers
Grey Hat Hackers
Black Hat Hackers
Red Hat Hackers
What is the OUTPUT?
String abc = "I LIKE IEEE";
System.out.println(abc.length());
9
10
11
12
_______________________ masks your IP address.
Firewall
Incognito mode
VPN
Antivirus
_________________________ is the method of locating all DNS servers (and their associated records) for an organization.
DNS enumeration
DNS server hacking
DNS server hacking
DNS hacking
What is the final value of x?
int x, y, z;
x = 1;
y = 2;
x = y = z = 5;
1
5
2
7
What is the purpose of SSL certificate in HTTP?
For making security weak.
For sending and receiving emails unencrypted.
For moving information faster.
For encrypted data sent over HTTP protocol.
Which of the following is an example of a strong password?
MyCat'sName
Cool15t
12345678
Tr1ck75t3r_c17y
What does HTTPS stand for in a website URL?
HyperText Transfer Protocol Server
HyperText Transfer Protocol Security
High-Tech Security Protocol
Hypertext Transfer Page Security
What are the two common hash functions?
MD5
RSA
SHA
Phishing
Which three protocols use asymmetric key algorithms?
SSH
PGP
SSL
AES
What is the OUTPUT?
char v1 = 'A';
char v2 = 'a';
System.out.println((int)v1 + " " + (int)v2);
67 95
65 97
162
66 98
What is the OUTPUT?
int i = 0;
int j = i++ + i;
System.out.printf("%d\n", j);
1
0
error
2
What is the OUTPUT?
int a = 10;
System.out.printf("%d", a);
int a = 20;
System.out.printf("%d",a);
10 20
10 10
error
20
What is the OUTPUT?
int i = 1;
System.out.println(i++);
System.out.println(i);
System.out.println(++i);
1
2
2
2
2
3
2
2
2
1
2
3
What is the OUTPUT?
int a = 10/3;
System.out.printf("%d",a);
0
3.3333
infinity
3
What is the OUTPUT?
int i;
for(i = 0 ; i < 5; i++){ }
System.out.println(i);
5
4
0
1
Data availability can be maintained by
Data Altering
Data Backup
Data Recovery
Data Clustering
Which code will give the below OUTPUT?
4 3
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);
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);
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);
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);
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: %, *)
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.
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".
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.
Print the word "IEEE" N times using a loop. The number N is entered by the user.
