Huawei Placement Paper Questions

Similar documents
HCL Sample Test Paper

Midterm Exam 2 Solutions, C programming

2008 Geometric Placement Paper

1. Arrange the fractions 5/8, 7/12, 13/16, 16/29 and 3/4 in ascending order of magnitude.

Essar Placement Paper

COP 3223 Introduction to Programming with C - Study Union - Spring 2018

VARIABLE, OPERATOR AND EXPRESSION [SET 1]

CS 1713 Introduction to Programming II

Character Strings. String-copy Example

COP 3223 Introduction to Programming with C - Study Union - Fall 2017

2. In simple interest what sum amounts of Rs.1120/- in 4 years and Rs.1200/- in 5 years?

CS 1713 Introduction to Programming II

Huawei Test 3. 1 A card is drawn from a pack of 52 cards. The probability of getting a queen of club or a king of heart is:

CS 223: Data Structures and Programming Techniques. Exam 2

Department of Computer Science Admission Test for PhD Program. Part I Time : 30 min Max Marks: 15

Midterm Exam 2 Solutions C Programming Dr. Beeson, Spring 2009

Procedures, Parameters, Values and Variables. Steven R. Bagley

Arrays. An array is a collection of several elements of the same type. An array variable is declared as array name[size]

Recursion Enums. Basics of Programming 1. Department of Networked Systems and Services G. Horváth, A.B. Nagy, Z. Zsóka, P. Fiala, A.

CGS 3460 Summer 07 Midterm Exam

COP 3223 Introduction to Programming with C - Study Union - Fall 2017

The Oracle Interview consists of two parts. One for Written test Interview and Another one for HR interview.

Computer Science 330 Assignment

Huawei Test 2. 1 Two dice are thrown simultaneously. What is the probability of getting two numbers whose product is even?

Darshan Institute of Engineering & Technology for Diploma Studies Unit 5

Q1: Multiple choice / 20 Q2: Arrays / 40 Q3: Functions / 40 TOTAL SCORE / 100 EXTRA CREDIT / 10

Renault Nissan Placement Paper Part-1

Slide Set 2. for ENCM 335 in Fall Steve Norman, PhD, PEng

Variables Data types Variable I/O. C introduction. Variables. Variables 1 / 14

DEPARTMENT OF MATHS, MJ COLLEGE

typedef int Array[10]; String name; Array ages;

Kurt Schmidt. October 30, 2018

Flowchart, Types, and Values

Latest R Systems Placement Test Questions

Subject: PROBLEM SOLVING THROUGH C Time: 3 Hours Max. Marks: 100

Introduction. Structures, Unions, Bit Manipulations, and Enumerations. Structure. Structure Definitions

York University Faculty Science and Engineering Fall 2008

MYcsvtu Notes LECTURE 34. POINTERS

Mechatronics and Microcontrollers. Szilárd Aradi PhD Refresh of C

CS 0449 Sample Midterm

Warmup January 9th, What is the value of the following C expression? 8*9 % 10/ 2

CSE 333 Midterm Exam 7/29/13

Operators And Expressions

Compiling and Running a C Program in Unix

PPT-2011 Test No 11 FM:- 45. Aptitude

Approximately a Final Exam CPSC 206

Some Technical and Aptitude Questions. Written Test. No of Questions :70 (40 Tech+30Apti) Time : 60 Minutes. void main( ) int i; i=(2,3);

Online Judge and C. Roy Chan. January 12, Outline Information Online Judge Introduction to C. CSC2100B Data Structures Tutorial 1

Sample Paper on GSAT with Solutions: -

HCL Aptitude Test a=2, b=3, c=6 Find the value of c/(a+b)-(a+b)/c Ans. 11/30

OBJECT ORIENTED PROGRAMMING USING C++

AMCAT Automata Coding Sample Questions And Answers

14. Other Data Types. Compound Data Types: Defined data types (typedef) Unions typedef existing_type new_type_name ;

Introduction to C Language (M3-R )

WIPRO Placement Paper By Students3k.com

Basic Elements of C. Staff Incharge: S.Sasirekha

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 13, FALL 2012

Memory. What is memory? How is memory organized? Storage for variables, data, code etc. Text (Code) Data (Constants) BSS (Global and static variables)

Remember to also pactice: Homework, quizzes, class examples, slides, reading materials.

Intermediate Programming, Spring 2017*

Arrays and Pointers (part 2) Be extra careful with pointers!

2. A circle is inscribed in a square of diagonal length 12 inches. What is the area of the circle?

Program Organization and Comments

Arrays and Pointers (part 2) Be extra careful with pointers!

EECE.2160: ECE Application Programming Fall 2017 Exam 3 December 16, 2017

IV Unit Second Part STRUCTURES

Questions = 50; time limit = 50 minutes. No negative marking. Offline (paper & pen) test. There was individual cut off for all the sections

UNIVERSITY OF WINDSOR Fall 2007 QUIZ # 2 Solution. Examiner : Ritu Chaturvedi Dated :November 27th, Student Name: Student Number:

4 th Six Weeks Geometry PAP

CS 223: Data Structures and Programming Techniques. Exam 2. April 19th, 2012

BCIS 3630 Dr. GUYNES SPRING 2018 TUESDAY SECTION [JAN version] GRADER COURSE WEBSITE

Principles of Programming Languages Topic: Imperative Programming II

for (i=1; i<=100000; i++) { x = sqrt (y); // square root function cout << x+i << endl; }

ASSIGNMENT BOOKLET. M.Sc.(Mathematics with Applications in Computer Science) Programming and Data Structures (1 st January, 2018 December, 2018)

Laboratory 2: Programming Basics and Variables. Lecture notes: 1. A quick review of hello_comment.c 2. Some useful information

These problems are provided to you as a guide for practice. The questions cover important concepts covered in class.

Binghamton University. CS-211 Fall Variable Scope

Mental Maths Competition Topics Included. (1) Q. No. 1 to 50 are based on basic. Calculation questions related to Addition,

CS 61C: Great Ideas in Computer Architecture. Lecture 3: Pointers. Bernhard Boser & Randy Katz

Data Types and Variables in C language

Aryan College. Fundamental of C Programming. Unit I: Q1. What will be the value of the following expression? (2017) A + 9

Chapter 2 (Dynamic variable (i.e. pointer), Static variable)

Binghamton University. CS-211 Fall Variable Scope

Programming for Engineers Structures, Unions

Question Bank (SPA SEM II)

Chapter 10 C Structures, Unions, Bit Manipulations

provided. Use any other space for rough work. The question paper has total 8 pages. Rough Work

Computer Programming. C Array is a collection of data belongings to the same data type. data_type array_name[array_size];

CS270 Homework 5 (HW5)

Exercises with switch

CS Programming I: Arrays

Foundation Exam - Sample Problems for New Topics

Tokens, Expressions and Control Structures

C++ for Java Programmers

LESSON 1. A C program is constructed as a sequence of characters. Among the characters that can be used in a program are:

EE472 Final Exam SOLUTION KEY. Prof. Blake Hannaford Department of Electrical Engineering The University of Washington 9-DEC-2008

Low-Level C Programming. Memory map Pointers Arrays Structures

CSE 333 Midterm Exam Sample Solution 7/29/13

UNIVERSITY OF WINDSOR Winter 2007 QUIZ # 1 Solution. Examiner:Ritu Chaturvedi Dated : Feb 7 th, Student Name: Student Number:

TEST BDA24202 / BTI10202 COMPUTER PROGRAMMING May 2013

Transcription:

1.Following some pattern, understand the table and find the answer? JANUARY 20 APRIL 10 MAY 5 NOVEMBER 15 JULY? 2. Find the missing number: 1 10 3 9 5 8 7 7 9 6?? 3. If it was two hours later, it would be half an hour as long until midnight as it will be if it were an hour later. What is the time now? 4. In a city, 80% speaks English, 70% speaks Hindi and 10% do not speak both. It was found that 162 people talk both. How many are there in the city?

5. Find the missing number: 0 6 24 X 120 6. Which is not 'lean year': 1900 2000 1952 1980 7. Find the missing number: J,?, M,?, M, J,?, A, S, O, N,? 8. There are 27 pearls in a bag. One among them is less in weight. You have been given 2 pan weight machine. In how many trials, you will be able to find the defected one? 4 3 11 13 9. Direct distance between A & B is 200. Direct distance between B & C is 200. Direct distance between C & A? 10. There are 30 socks in a bag. 30% is in blue color. What is the probability to take two blue socks?

11. In a ground, there are two poles in 7 ft & 12 ft respectively. They are 12 ft apart from each other. What is the distance between the edges of two poles? 12. You need to print an document of the area 216 sq cm. Condition is 3 cm margin is to be left at both top & bottom and 2 cm at the sides. What 'd be the optimized size of your paper? 13. In a party, every man has his dog with him. There are 22 heads and 72 legs all together. How many men & dogs are there? 14. Ram writes a number between 1 to 1000. Raja wants to know the number, knowing Ram can answer only yes & no and always speaks truth. What will be the minimum number of questions Raja finds the answer. a. 999 b.10 c.500 d.none 15. How many ways a section of four letter word can be made in complete alphabet? 16. Find the missing number: 0, 0.577, 1, 1.732,?

a. 0.656 b.2 c.2.743 d.none 17. 17171717171...(101 digits) is divided by 625. What is the answer? 18. Synonym for ZENITH: ridge trough nadir crecent 19. June 30, 2004 is wednesday. What is June 30, 1974? 20. Two different types of tea are mixed, at 6 Kg of type 1 and 4 Kg of type 2. One Kg of type 1 is Rs. 6 and that of type 2 is Rs. 7. The seller get 10% profit, by this action. Find at what price, he 'd have sold the mixture/kg? 21. All the students of class are told to sit in circle shape. Here the boy at the 6 th position is exactly opposite to 16 th boy. Total number of boys in the class? 22. The average mark of 10 students is 80%. Later it was found that for one student, instead of 60%, the recorded 90%, by mistake. Now the corrected new percentage?

Ans: Old % is 80 for 10 ppl. So the total: 800. Difference in correction : 30. So the total : 770 for 10 ppl. (i.e) 770/10= 77%. (New %) 23 A can do a piece of work in 7 days of 9 hours each and B can do it in 6 days of 7 bours each. How long will they take to do it, working together 8 hours a day? Sol. 3 days 24. A and B can do a piece of work in 18 days; Band C can do it in 24 days A and C can do it in 36 days. In how many days will A, Band C finish it together and separately? Sol., A, Band C together can finish the work in 16 days. A alone can finish the work in 48 days. B alone can finish the work in 144/5=28 4/5 days

C alone can finish the work in 144 days. 25. A is twice as good a workman as B and together they finish a piece in 18 days. In how many days will A alone finish the work? Sol. 27 days. 26. A can do a certain job in 12 days. B is 60% more efficient than A. How many days does B alone take to do the same job? Sol. 7 1/2 days. 27. A can do a piece of work in 80 days. He works at it for 10 days B alone finishes the remaining work in 42 days. In how much time will A and B working together, finish the work? Sol. 30 days.

28. A and B undertake to do a piece of work for Rs. 600. A alone can do it in 6 days while B alone can do it in 8 days. With the help of C, they finish it in 3 days.!find the share of each. Sol : Rs. 75. 29. A and B working separately can do a piece of work in 9 and 12 days respectively, If they work for a day alternately, A beginning, in how many days, the work will be completed? Sol : 10 1/4days. 30.45 men can complete a work in 16 days. Six days after they started working, 30 more men joined them. How many days will they now take to complete the remaining work? C programming: [What will be the output???]

1. void checka() { int a=2; if(a=3!=3) printf(" 3 "); else printf(" 2 "); return; 2. main() { char P[]={"Hello World";

printf(" %s ",p); main(); 3. UINT i,j; i = j = 0; i = ( i++ > ++j )? i++ : i--; 4. # define D 10 # define Y D+10 # define D 30 main(int argc, char *arc[])

{ printf(" %d ",D); 5. # define TRUE 0 main() { int i=0; while(true) { printf(" %d ",i);

i++; printf(" %d ",i); 6. UCHAR j; for(j=0;j<2000;j++); Number of iterations? 7. main() { int a[5]; a[0]=0;

a[1]=1; for(i=2 ; i<4 ; i++) a[i] = a[i-1] + a[i-2]; What are the elements of array? 8.In the following code snippet can we declare a new typedef named ptr even though struct employee has not been completely declared while using typedef? A. Yes B. No Ans-A 9.What will be the output of the program? A. 3, 4, 4, 3 B. 4, 3, 4, 3

C. 3, 3, 4, 4 D. 3, 4, 3, 4 Ans-B 10.Two tables emp(empid,name,deptid,sal) and dept(deptid,deptname) are there.write a query which displays empname,corresponding deptname also display those employee names who donot belong to any dept. 11.Write prefix and post fix notation for (a+b)*c-(d+e)^(f-g) 12.write program to swap 2 variables without using extra memory. 13.Find the output for the following C program fn f(x) {

if(x<=0) return; else f(x-1)+x; 14.Find the output for the following C program main() { intx=2,y=6,z=6; x=y=z; printf(%d",x) 15. Given the following statement

enum day = {jan = 1, feb=4, april, may What is the value of may? (a) 4 (b) 5 (c) 6 (d) 11 (e) None of the above 16. Find the output for the following C program main {int x,j,k; j=k=6;x=2; x=j*k;

printf("%d", x); 17. Find the output for the following C program fn f(x) { if(x<=0) return; else f(x-1)+x; 18. Find the output for the following C program i=20,k=0; for(j=1;j<i;j=1+4*(i/j)) {k+=j<10?4:3;

printf("%d", k); 19. Find the output for the following C program int i =10 main() {int i =20,n; for(n=0;n<=i;) {int i=10; i++; printf("%d", i);

20. Find the output for the following C program int x=5; y= x&y