
Question: What is the transmission efficiency of the Slotted ALOHA protocol?
Options:
Question: Bob has a dataset stored in Parquet format in a Cloud Storage bucket and he wants to load it into BigQuery. While loading data into BigQuery from a Cloud Storage bucket, he wants to know about the limitation. Help him to find which of the following is correct about the mentioned context.
Options:
Question: Which is the right articulation for the length of a UDP datagram?
Options:
Question: What is the format of an Ethernet network?
Options:
Question: While working on a Linux project you have created different files and programs. Now, you have to display all network interfaces on the system to your colleague. Hence, which command will you use for the same?
Options:
$ ip link show$ traceroute network$ ip route show$ netstat filesQuestion: In networking, which of the following statements about the TCP ZeroWindow probes is correct?
Statements:
Options:
Question: John is working on Networking. While working on an application, he got the network address 156.45.0.0/22. He wants to find the subnet mask, the number of subnets that can be created, and the number of hosts in each network but he is unfamiliar with subnetting. Help him to find which of the following will suit the above mentioned context.
Options:
Question: John, a programmer exploring Microsoft SQL Server Database Administration, is eager to learn about the Checkpoint Process in SQL Server. What is the purpose of the Checkpoint Process in the SQL Server?
Options:
Question: Consider a non-trivial function dependency A -> B. Which of the following conditions about the dependency will be useful to justify that the given relation is in 3NF?
Conditions:
Options:
Question: What is the output of the following Java code?
public class Main {
public static void main(String[] args) {
IntegerBox<Integer> intBox = new IntegerBox<>(7);
IntegerBox<Integer> anotherIntBox = new IntegerBox<>(3);
System.out.println(intBox.getIncrementedValue() + " " + anotherIntBox.getIncrementedValue());
}
}
class Box<T> {
T content;
Box(T item) { content = item; }
T getContent() { return content; }
}
class IntegerBox<I extends Integer> extends Box<I> {
IntegerBox(I item) { super(item); }
int getIncrementedValue() { return getContent() + 1; }
}
Options:
8 4)Question: What is the output of the following Python code:
def adder1(*args):
print('adder1', end='')
if type(args[0])==type(0):
sum = 0
else:
sum=args[0][:0]
for arg in args:
sum=sum+arg
return sum
def adder2(*args):
print('adder2', end='')
sum=args[0]
for next in args[1:]:
sum += next
return sum
for func in (adder1, adder2):
print(func('5', '4', '3'))
Options:
Question: What is the output of the following Python code:
class Person:
def __init__(self,name, job=None, pay=0):
self.name = name
self.job = job
self.pay = pay
def lastName(self):
return self.name.split()[-1]
def giveRaise(self,percent):
self.pay = int(self.pay * (1+percent))
return self.pay
def __repr__(self):
return '[Person: %s, %s]' % (self.name,self.pay)
class Manager:
def __init__(self,name,pay):
self.person = Person(name, 'mgr', pay)
def giveRaise(self, percent, bonus=.10):
return self.person.giveRaise(percent+bonus)
def __getattr__(self,attr):
return getattr(self.person,attr)
def __repr__(self):
return str(self.person)
if __name__ == '__main__':
sue = Person('Sue Jones',job='dev',pay=100000)
print(sue.lastName())
print(sue.giveRaise(.10))
tom=Manager('Tom Jones', pay=50000)
print(tom.giveRaise(.10))
Options:
Question: What is the output of the given Python code?
class Parent:
def __init__(self):
self._num = 56
def show(self):
print("Parent:", self._num)
class Child(Parent):
def __init__(self):
super().__init__()
self._var = 89
def show(self):
print("Child:", self._var)
parent=Parent()
parent.show()
child=Child()
child.show()
Options:
Question: In C++, which of the following statements about the copy constructor is correct?
Options:
Question: What is the output of the following C++ code?
#include <bits/stdc++.h>
using namespace std;
class hacker1{
public:
int id1;
};
class hacker2: public hacker1{
public:
int id2;
};
int main(){
hacker2 obj1;
obj1.id1 = 7;
obj1.id2 = 91;
obj1.id2 = 100;
obj1.id1 = 110;
cout << obj1.id2 << endl;
cout << obj1.id1 << endl;
return 0;
}
Options:
Question: A team recently adopted the Agile methodology of product development. Which of the following statements should not be addressed in the team's first Sprint Review meeting after a two week long sprint?
Statements:
Options:
Question: Anita is the product owner for a software development team using the scrum framework. She wants to make sure the team is well prepared for sprint planning. Which of the following should she make sure the team has in place?
Options:
Question: John's project manager uses the Agile methodology for his software development project. He is planning for the upcoming sprint with his team using sprint planning, what does the team do with the product backlog?
Options:
Question: John is working on a JavaScript codebase that uses class inheritance. He is trying to create a subclass Rectangle that extends the base class Shape. The Shape class has a color property that should be inherited by Rectangle, but the Rectangle class needs to have its own width and height properties. Which of the following options correctly implements this?
Options:
class Rectangle extends Shape { constructor(color, width, height) { super(color); this.width = width; this.height = height; } }class Rectangle extends Shape { constructor(width, height) { super(color); this.width = width; this.height = height; } }class Rectangle extends Shape { constructor(width, height) { this.width = width; this.height = height; } }class Rectangle extends Shape { constructor(color, width, height) { super(); this.color = color; this.width = width; this.height = height; } }Question: What is the output of the following Python code:
class Deco:
def __init__(self):
self.n = "Python Testing"
@property
def prog(self):
return self.n
@prog.setter
def prog(self, val):
self.n = val
data = Deco()
data.prog = "HackerEarth"
print(data.prog)
Options:
Question: Consider the following Python 3 code. Determine the value of wrapper_count.num_calls after the code is run?
import functools
def count(f):
@functools.wraps(f)
def wrapper_count(*args, **kwargs):
wrapper_count.num_calls += 1
return f(*args, **kwargs)
wrapper_count.num_calls = 0
return wrapper_count
@count
def PythonProg():
print("Python")
PythonProg()
PythonProg()
Options:
Question: What is the output of the following C++ code?
#include<iostream>
using namespace std;
class Test
{
private:
int x;
public:
void setx (int x) { this->x = x; }
void print() { cout << x << endl; }
};
int main() {
Test obj;
int x = 20;
obj.setx(x);
obj.print();
return 0;
}
Options:
Question: In Python 3, which of the following represent types of infinite iterators?
Statements:
count(start, step)cycle(iterable)repeat(val, num)Options:
Question: In Python, which of the following statements about the isalpha() function is correct?
Statements:
Options:
Question: Bob is working on Data visualization in a company... he wants to know more about annotations. Help him by understanding the correct statement related to annotation from the following according to the above scenario:
Options:
Question: What is the output of the following Python code:
class Commuter_new:
def __init__(self,val):
self.val=val
def __add__(self,obj):
if isinstance(obj, Commuter_new):
obj = obj.val
return Commuter_new(self.val+obj)
def __radd__(self,obj):
return Commuter_new(obj+self.val)
def __str__(self):
return '<Commuter_new:%s>' % self.val
x=Commuter_new(15)
print(x)
Options:
Question: What is the output of the following Java code:
enum Currency {
USD(1.18), EUR(1.0), JPY(132.17);
private double rate;
Currency(double rate) { this.rate = rate; }
double convertToUSD(double amount) { return amount * rate; }
}
public class Main {
public static void main(String[] args) {
Currency currency = Currency.EUR;
System.out.println(currency.convertToUSD(50));
}
}
Options:
Question: In digital electronics, while manufacturing embedded capacitors, which of the following is an advantage of replacing two-phase composites with three-phase composites?
Options:
Question: What is the output of the following Python code?
import pandas as pd
data=pd.read_csv('Employee_Data.csv')
data['Total']=data['Age']+data['Experience']
print(data)
Options:
Question: What is the output of the following Python code
import asyncio
async def coroutine(n):
print(f"{n} is running")
await asyncio.sleep(1)
print(f"{n} is done")
async def main():
await asyncio.gather(
coroutine(1),
asyncio.sleep(0.7),
coroutine(2),
)
asyncio.run(main())
Options:
Question: In C++, which of the following statements defines an orthogonal base class?
Options:
Question: In R, which of the following is not an atomic datatype?
Options:
Question: In C++, which of the following statements about an anonymous class is true?
Options:
Question: What is the output of the following SQL query?
SELECT Item.PName, Item.Price, Brand.BName
FROM Item
INNER JOIN Brand
ON Item.CID = Brand.BID;
Options:
Question: What is the output of following Python code:
import nltk
from nltk.tokenize import sent_tokenize
text = "I love natural language toolkit. It's fascinating!"
sentences = sent_tokenize(text.lower())
print(sentences)
Options:
['i love natural language toolkit.', "it's fascinating!"]["i love natural language toolkit", "it's fascinating"]['i love natural language toolkit', "it's fascinating!"]["i love natural language toolkit.", "it's fascinating!"]Amazon • Pending