23
ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept. Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 Round 1 CODE-MANIA 1.How to store mobile number in database 2. What is your idea for generating Random Number. 3. What is Atomic Section in Java and How it is used. CODE-MANIA answers 1.varchar (10), for country code you can add (3) 2.You can use ready web service. 3. Atomic section is more efficient than Synchronization .Atomic operations are performed as single unit of task without interference from other operations. Atomic operations are necessity in multithreaded environment to avoid data inconsistency. It is explained with the help of example.

Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

Q & A FROM JULY 2016 TO MAY 2017

MONTH JULY 2016

Round 1

CODE-MANIA 1.How to store mobile number in database

2. What is your idea for generating Random Number.

3. What is Atomic Section in Java and How it is used.

CODE-MANIA answers

1.varchar (10), for country code you can add (3)

2.You can use ready web service.

3. Atomic section is more efficient than Synchronization .Atomic operations are performed as single unit of task without interference from other operations. Atomic operations are necessity in multithreaded environment to avoid data inconsistency. It is explained with the help of example.

Page 2: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

MONTH AUGUST 2016

Round 1

News Mania

1. The Bharat Sanchar Nigam Limited(BSNL) has signed MoU with which technology giant to offer telecom and IT solutions?

a. Microsoft The Bharat Sanchar Nigam Limited (BSNL) has recently signed a

Memorandum of Understanding (MoU) with Microsoft India to offer telecom and IT solutions for big businesses to meet the demand for IT and cloud services. The MoU will help audio and video needs of the BSNL’s enterprise customers, including government organizations.

2. Which company has recently launched Virtual Reality Headset called Project Alloy?

a. Answer – C.Intel Explanation : Intel has unveiled a Virtual Reality headset to take on Oculus, HTC and Microsoft. This headset, called Project Alloy, will offer ‘mixed reality’ – bridging the gap between VR headsets such as the Oculus Rift and AR headsets such as the Microsoft Holo Lens, which projects holographic data onto the wearer’s field of vision.

3. What is the full form of IEEE?

a. Ans : Institute of Electric and Electronic Engineers 4. When was the first smart phone launched?

a. Ans : 1992 (IBM Simon)

5. How many countries are participants in the Rio Olympic 2016? Name at least 20 countries

excluding India.

Page 3: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

ROUND 2 APTI-MANIA

1. The length of the bridge, which a train 130 meters long and travelling at 45 km/hr can cross in 30 seconds, is:

Answer Explanation: Speed = (45 * 5/18) m/sec = (25/2) m/sec. Time = 30 sec. Let the length of bridge be x meters.

Then, (130 + X)/30 = 25/2 ==> 2(130 + X) = 750 ==> X = 245 m.

2. The number of arrangements that can be made with the letters of the word MEADOWS so that the vowels occupy the even places?

Answer Explanation:

The word MEADOWS has 7 letters of which 3 are vowels.

-V-V-V- As the vowels have to occupy even places, they can be arranged in the 3 even places in 3! i.e., 6 ways. While the consonants can be arranged among themselves in the remaining 4 places in 4! i.e., 24 ways.

Hence the total ways are 24 * 6 = 144.

3.A person was asked to state his age in years. His reply was, "Take my age three years hence, multiply it by 3 and then subtract three times my age three years ago and you will know how old I am." What was the age of the person?

Answer Explanation:

Let the present age of the person be x years. Then, 3(x + 3) - 3(x - 3) = x

3x + 9 - 3x + 9 = x => x = 18

4. [(√7 + √5) / ( (√7 - √5)] + [(√7 - √5) / (√7 + √5)] = ???

Answer Explanation:

[(√7 + √5) / ( (√7 - √5)] + [(√7 - √5) / (√7 + √5)]

= [(√7 + √5)2 + (√7 - √5)

2] / (√7 + √5)(√7 -

√5) [(√7 + √5)2 + (√7 - √5)

2] / 2 = 12

5.Albert buys 4 horses and 9 cows for Rs. 13,400. If he sells the horses at 10% profit and the cows at 20% profit, then he earns a total profit of Rs. 1880. The cost of a horse is:

Page 4: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

Let C.P. of each horse be Rs. x and C.P. of each cow be Rs. y. Then, 4x + 9y = 13400 -- (i)

And, 10% of 4x + 20% of 9y = 1880 2/5 x + 9/5 y = 1880 => 2x + 9y = 9400 -- (ii)

Solving (i) and (ii), we get : x = 2000 and y = 600. Cost price of each horse = Rs. 2000.

6.

Number Puzzle: Which number replaces the question mark?

Answer: 100

Explanation:

(7+5)2 = 144; (3+4)2 = 49; (5+1)2 = 36.

So, missing number = (2+8)2 = 100.

Page 5: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

MONTH SEPTEMBER 2016

Round1

CODE MANIA 1. Pascal's Triangle Challenge in C/C++.Write a program to

compute the value of a given position in Pascal's (See image).

Triangle

The program should prompt the user to input a row and a position in the row. The program should ensure that the input is valid before computing a value for the position.

2. Which is correct syntax ? a. myfile:open ("example.bin", ios::out); b. myfile.open ("example.bin", ios::out); c. myfile::open ("example.bin", ios::out); d. myfile.open ("example.bin", ios:out);

3. List the implicit member functions of a class? 4. What are the storage classes in C++? 5. What would be Output of this program?

#include <iostream> using namespace std; class myclass { public: int i; myclass *operator->() {return this;} }; int main() { myclassob; ob->i = 10;

Page 6: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

cout<<ob.i<< " " <<ob->i; return 0;}

ROUND 2 NEWS MANIA!

1. What is Mercator?

2. What is the concept behind Glassy Cell Phone?

3. What is the concept behind Apple Black Hole Phone ?

4. What is RippleBuds?

Answers

1. A conformal map projection of which the meridians are usually drawn parallel to each

other and the parallels of latitude are straight lines whose distance from each other

increases with their distance from the equator

3. The Apple Black Hole comprises 4 components: the charging base, the Prism, the Black

Hole and the giftbox. Things get interesting when you try to use the handset… its central

ball will levitate when you open your hand and all functions will be controlled in mid-air,

with the aid of holographic technology. The Black Hole concept phone can be connected

to the charging base and used as a desktop device, still projecting the needed interface.

4. RippleBuds is the world’s newest and best Bluetooth earbuds with a special in-ear

microphone system. It’s small and powerful.Its innovative noise blocking technology

gives users exclude ambient noise and make them be understood/heard clearly regardless

of the noise environment while communicating.

Page 7: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

MONTH OCTOBER 2016

Round 1 Crossword Puzzle

Across Down

1 Remove a letter to the right of the cursor 1 A collection of programs and folders that you can 2 The choices, or options, you have. see on the screen

3

This key will take you down a line

6 Something that makes it possible to create

something or do a task on the computer 4 A device that helps you operate the computer

7 A device for entering data into the computer 5 Remove a letter to the left of the cursor

8 This makes a gap between words 10 A place on the desktop that shows the jobs you are 9 Press the mouse button on the left doing (the programs you have open)

12 Hold down this key while pressing another key 11 The flashing vertical line that you see when typing

a document

to make a capital letter

Page 8: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

Answer

Page 9: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

MONTH JANUARY 2017

ROUND 1

Page 10: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

Page 11: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

Round 2 News- Mania

Which of the following banks has tied up with online portal "magicbricks.com" to conduct joint marketing activities? A. ICICI Bank

B. Punjab National Bank

C. HDFC Bank

D. State Bank of India

Answer : D

Who headed the Committee to Review the Framework Related to Digital Payments? A. Ratan P Watal

B. Vijay Kelkar

C. D Subba Rao

D. Y V Reddy

Answer: A

Page 12: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

Round 3 Apti- Mania

1. A train running at the speed of 60 km/hr crosses a pole in 9 seconds. What is the length of the train? A. 120 metres

B. 180 metres

C. 324 metres D. 150 metres

Answer: Option D Explanation:

5 50

Speed= 60 x

m/sec =

18 3

m/sec.

Length of the train = (Speed x Time).

50

Length of the train =

x 9

3 m = 150 m.

.

2. A train 125 m long passes a man, running at 5 km/hr in the same direction in which the train is going, in 10 seconds. The speed of the train is:

A. 45 km/hr

B. 50 km/hr

C. 54 km/hr

D. 55 km/hr

Answer: Option B

Page 13: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

Explanation: 125

Speed of the train relative to man = 10

m/sec 25

= 2 m/sec.

25 18

= 2

x 5 km/hr

= 45 km/hr. Let the speed of the train be x km/hr. Then, relative speed = (x - 5) km/hr.

x - 5 = 45 x = 50 km/hr.

Round 4 Code Mania

What will be the output of the program? #include<stdio.h>

int i;

int fun();

int main() {

while(i) {

fun();

main(); }

printf("Hello\n");

return 0; }

int fun() {

printf("Hi"); }

A. Hello B. Hi Hello

C. No output

D. Infinite loop

Answer: Option A Explanation: Step 1: int i; The variable i is declared as an integer type. Step 1: int fun(); This prototype tells the compiler that the function fun() does not accept any arguments and it returns an integer value.

Page 14: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

Step 1: while(i) The value of i is not initialized so this while condition is failed. So, it does not execute thewhile block. Step 1: printf("Hello\n"); It prints "Hello". Hence the output of the program is "Hello".

Page 15: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

MONTH FEBRUARY 2017

ROUND 1 News-Mania

1. Who is the leading the Indian delegation in the 2017 SAARC programming committee? A. Sushma Swaraj

B. Rajnath Singh

C. Prashant Agarwal

D. Arun Jaitley

Answer : C

2.

How much amount has been sanctioned by the World Bank for "Third Technical Education Quality Improvement Programme (TEQIP III)? of India? A. $220.50 million

B. $232.50 million

C. $225.50 million

D. $201.50 million

Answer :D

Page 16: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

Round 2 Apti-Mania

1. Alfred buys an old scooter for Rs. 4700 and spends Rs. 800 on its repairs. If he sells the scooter for Rs. 5800, his gain percent is:

4 A. 4 %

7

5 B. 5 %

11

C. 10% D. 12%

Answer: Option B Explanation:

Cost Price (C.P.) = Rs. (4700 + 800) = Rs. 5500. Selling Price (S.P.) = Rs. 5800.

Gain = (S.P.) - (C.P.) = Rs.(5800 - 5500) = Rs. 300.

Gain % = 300

x 100

= 5 5

%

5500

% 11

2. The cost price of 20 articles is the same as the selling price of x articles. If the profit is 25%, then the value of x is: A. 15

B. 16

C. 18

Page 17: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

D. 25

Answer: Option B Explanation: Let C.P. of each article be Re. 1 C.P. of x articles = Rs. x. S.P. of x articles = Rs. 20. Profit = Rs. (20 - x).

20 - x

x 100 = 25 x

2000 - 100x = 25x 125x = 2000

x = 16.

Round 3 Tech-Mania

1. What are the two main types of access control lists (ACLs)?

A . Standard

B. IEEE C. Extended D. Specialized

Answer : A And C

2. How long is an IPv6 address? A. 32 bits

B. 128 bytes

C. 64 bits

D. 128 bits

Answer :B

Page 18: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

Round 4

Code-Mania

What will be the output of the program?

#include<stdio.h>

int i; int fun();

int main()

{

while(i)

{

fun();

main(); } printf("Hello\n");

return 0; }

int fun()

{

printf("Hi"); }

A. Hello

B. Hi Hello

C. No output

D. Infinite loop

Answer: Option A Explanation: Step 1: int i; The variable i is declared as an integer type. Step 1: int fun(); This prototype tells the compiler that the function fun() does not accept any arguments and it returns an integer value. Step 1: while(i) The value of i is not initialized so this while condition is failed. So, it does not execute the while block. Step 1: printf("Hello\n"); It prints "Hello". Hence the output of the program is "Hello".

Page 19: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

MONTH MARCH 2017

Round 1

News-Mania

1. Who has been named as the "Captain of the Year" at 2017 ESPNcricinfo Awards? A. Virat Kohli

B. Ben Stokes

C. Faf du Plessis

D. Steven Smith

Answer: A

2. Which state is going to host the river festival called 'Namami Brahmaputra'? A. Assam

B. Arunachal Pradesh

C. West Bengal

D. Tripura

Answer: A

Page 20: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

Round 2 Apti-Mania

1. Two students appeared at an examination. One of them secured 9 marks more than the other and his marks was 56% of the sum of their marks. The marks obtained by them are: A. 39, 30

B. 41, 32

C. 42, 33

D. 43, 34

Answer: Option C Explanation: Let their marks be (x + 9) and x.

56

Then, x + 9 = 100 (x + 9 + x)

3x = 99 x = 33

So, their marks are 42 and 33.

2. A fruit seller had some apples. He sells 40% apples and still has 420 apples. Originally, he had: A. 588 apples

B. 600 apples

C. 672 apples

D. 700 apples

Answer: Option D Explanation: Suppose originally he had x apples. Then, (100 - 40)% of x = 420.

60 x x = 420

100

Page 21: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

x = 420 x 100

60 = 700.

Round 3 Tech-Mania

1. Comparison between HTML and XML

2. Difference between ID selector and class selector in jQuery?

3. What is image map?

Answers 1.

HTML XML

HTML is an abbreviation for HyperText XML stands for eXtensible Markup Markup Language. Language.

HTML was designed to display data with XML was designed to be a software and

focus on how data looks. hardware independent tool used to transport

and store data, with focus on what data is.

HTML is a markup language itself. XML provides a framework for defining

markup languages.

HTML is a presentation language. XML is neither a programming language nor a

presentation language.

HTML is case insensitive. XML is case sensitive.

HTML is used for designing a web-page to XML is used basically to transport data

Page 22: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

be rendered on the client side. between the application and the database.

HTML has it own predefined tags. While what makes XML flexible is that

custom tags can be defined and the tags are

invented by the author of the XML document.

HTML is not strict if the user does not use XML makes it mandatory for the user the

the closing tags. close each tag that has been used.

HTML does not preserve white space. XML preserves white space.

HTML is about displaying data,hence static. XML is about carrying information,hence

dynamic.

2. ID's are unique

• Each element can have only one ID

• Each page can have only one element with that ID

When I was first learning this stuff, I heard over and over that you should only use ID's once,

but you can use classes over and over. It basically went in one ear and out the other because it sounded more like a good "rule of thumb" to me rather than something extremely important. If

you are purely an HTML/CSS person, this attitude can persist because to you, they really don't

seem to do anything different.

Here is one: your code will not pass validation if you use the same ID on more than one

element. Validation should be important to all of us, so that alone is a big one. We'll go over

more reasons for uniqueness as we go on.

Classes are NOT unique

• You can use the same class on multiple elements.

• You can use multiple classes on the same element.

3. The <map> tag is used to define a client-side image-map. An image-map is an image with

Page 23: Q & A FROM JULY 2016 TO MAY 2017 MONTH JULY 2016 …

ATSS Institute of Industrial and Computer Management & Research Nigdi Pune, MCA Dept.

clickable areas.

The required name attribute of the <map> element is associated with the <img>'s usemap attribute and creates a relationship between the image and the map.

The <map> element contains a number of <area> elements, that defines the clickable areas in the image map.

Round 4

Code-Mania

What will be the output of the following program? #include<iostream.h>

class IndiaBix {

int x;

public: IndiaBix(int xx, float yy) {

cout<< char(yy); }

};

int main() {

IndiaBix *p = new IndiaBix(35, 99.50f);

return 0; }

A. 99 B. ASCII value of 99

C. Garbage value

D. 99.50

Answer : Option B