Home
About
Testimonial
Courses
Contact
Login
Free Sign Up
Google
ABB
Accenture
Adobe
Akamai
Amazon
Amdocs
Arista Networks
Courses
Ashok Leyland
More
BEL
BHEL
Birlasoft
BPCL
Cairn
Capgemini
CGI
Cisco
CoCubes
Cognizant
Cummins
Dell
Deloitte
DE-Shaw
Deutsche-Bank
E & Y
Ericsson
EXL
Facebook
Fidelity
Flextronics
Flipkart
Future-First
Genpact
Globallogic
Godrej
Goldman-Sachs
HAL
HCL Technologies
Hewlett Packard
Hexaware
Honeywell
HPCL
IBM
Impetus
Infogain
Informatica
Infosys
IOCL
ITC
JP-Morgan
KPMG
L and T infotech
Mahindra & Mahindra
MAQ-Software
Maruti
Microsoft
Mindtree
Mphasis
Musigma
Myntra
Nagarro-Software
Newgen
Nokia
Nutanix
ONGC
ORACLE
Paytm
PayPal
PWC
Qualcomm
Reliance Industries
Robert Bosch
Saint-Gobain
SAMSUNG
SAP
SBI
Schneider
Siemens
Sutherland
Tata-Steel
TCS
Tech Mahindra
Thomson Reuters
Virtusa
Visa
VMware
Walmart
Wipro
Zensar
Zomato
ZS-Associates
Quant
Verbal
Reasoning
Data
Interview
Question Bank
Careers
InfoZone
E-Library
GK
Vocab
Puzzles
Quant
Verbal
Reasoning
Data
Interview
Question Bank
Careers
More
InfoZone
E-Library
GK
Vocab
Puzzles
Technical Questions asked in Google
Learn all about technical questions asked in Google
Views:11647
Instant Access to Free Material
What will be the output of following code fragment?
a=60;
b=70;
i=j=10;
if(a<100){
if(b>50){
++i ;
else
++j ;
}}
cout<< i+j;
21
19
20
None of the above
Answer & Explanation
Answer: Option A.
What is the error in the code?"
Char ch;
Int vowels=0,others=0;
Cin>> ch;
While((ch>= ‘A’ && ch <+ ‘Z’) || (ch>=’a’ && ch <= ‘z’)){
Switch(ch)
{
Case’a’:
Case’A’:
Case’e’:
Case’E’:
Case’i’:
Case’i’:
Case’o’:
Case’O’:
Case’u’:
Case’U’: ++vowels;
Break;
Default: ++others;
}}
Cout<< vowels<< ‘\n’<< others;
The while loop is an endless loop. Whatever value of ch has in the beginning, will remain the same, as ch is not updated within the loop.
There is no need to declare 'a' and 'A' and hence all other vowels gain in switch as it is case insensitive.
The switch statement’s two case constants are identical case 'i' and 'i' which is an error
More than one is correct from above.
Answer & Explanation
Answer: Option D.
Which of the following is not supported by Java?
Operator overloading
Multiple inheritances for classes
None of these
Both (a) and (b)
Answer & Explanation
Answer: Option D.
Which of the following are included in relational integrity constraints in DBMS?
Key constraints
Domain constraints
Referential integrity constraints
All of these
Answer & Explanation
Answer: Option D.
What is the output of the following program?
#include
-13,-130
33,330
-13,-130
-13,20
-13,20
33,330
None of these
Answer & Explanation
Answer: Option B.
Google Preparation Links
Technical Questions asked in Google
Careers in Google
Sample Aptitude Questions of Google
All About Google
Free Mock Google Placement Paper
Join free prep course for Google
Test Pattern & Selection Procedure of Google
Actual Google Interview Questions
Google Sample Verbal Questions
Google Reasoning Questions
Google Job Vacancies
Complete preparation course of Google
Views:11647
Most Popular Articles
Placement Papers of all major companies
List of IT Companies
Aptitude Questions of all Major Companies
Test Pattern of all major companies
Technical Questions of all major companies
List of Core Companies
Interview Questions of all major companies
All About GATE Entrance Exam
How to prepare for Aptitude Tests?
GATE Previous Year Papers