0% found this document useful (0 votes)
23 views74 pages

Accenture Material

The document contains a series of multiple-choice questions related to Microsoft Office applications, specifically focusing on features and functionalities in MS Word and Excel. It covers topics such as formatting, shortcuts, tools, and document management. The questions aim to test knowledge on various aspects of MS Office usage.

Uploaded by

owsikan2016
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views74 pages

Accenture Material

The document contains a series of multiple-choice questions related to Microsoft Office applications, specifically focusing on features and functionalities in MS Word and Excel. It covers topics such as formatting, shortcuts, tools, and document management. The questions aim to test knowledge on various aspects of MS Office usage.

Uploaded by

owsikan2016
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 74

MS OFFICE

specific training

1. From which menu you can insert Header and Footer?

(A) Insert Menu


(B) View Menu
(C) Format menu
(D) Tools Menu
2. To get to the ‘Symbol’ dialog box, click on the menu and choose ‘Symbol’.
(A) Insert
(B) Format
(C) Tools
(D) Table
3. option from clipboard is used to move data from one place to another in a
document.
(A) Copy & Paste
(B) Cut & Paste
(C) Bold
(D) Justify
4. is an option in Font Group.
(A) Strikethrough
(B) Find
(C) Replace
(D) Change Styles
specific training

5. Name the button in the picture?


(A) Font Color
(B) Fill Color
(C) Page Color
(D) Highlighter tool

6. Shortcut for document views toolbar is situated in bar


(A) Task bar
(B) Status bar
(C) Tool bar
(D) Title bar

7. Bullets and Numbering is in tab.


(A) Home tab
(B) Insert tab
(C) Pagelayout tab
(D) View tab

8. To open a existing document, click on the and then select Open.


(A) MS Office button
(B) Quick Access Toolbar
(C) Document Views
(D) Ribbon
specific training

9. Cut, Copy and Paste is in Group in the Home tab.

(A) Font

(B) Page Setup

(C) Clipboard

(D) Editing

10. is used to covert from uppercase to lowercase and vice versa.

(A) Toggle case

(B) Sentence case

(C) Lower case

(D) Upper case

11. Pressing F8 key for three times selects

(A) A word

(B) A sentence

(C) A paragraph

(D) Entire document

12. What is the shortcut key you can press to create a copyrightsymbol?

(A) Alt+Ctrl+C

(B) Alt + C

(C) Ctrl + C

(D) Ctrl + Shift + C


specific training

13. What is the smallest and largest font size available in Font Size tool on
formatting toolbar?
(A) 8 and 72
(B) 8 and 64
(C) 12 and 72
(D) None of above

14. Which of the following is graphics solution for Word Processors?


(A) Clipart
(B) WordArt
(C) Drop Cap
(D) All of above

15. The keystrokes Ctrl + I is used to


(A) Increase font size
(B) Inserts a line break
(C) Indicate the text should be bold
(D) Applies italic format to selected text

16. A character that is raised and smaller above the baseline is known as
(A) Outlined
(B) Raised
(C) Superscript
(D) Subscript
specific training

17. Thesaurus tool in MS Word is used for

(A) Spelling suggestions

(B) Grammar options

(C) Synonyms and Antonyms words

(D) All of above

18. Why Drop Caps are used in document?

(A) To drop all the capital letters

(B) To automatically begin each paragraph with capital letter

(C) To begin a paragraph with a large dropped initial capital letter

(D) None of above

19. A bookmark is an item or location in document that you identify as a name for future
reference. Which of the following task is accomplished by using bookmarks?

(A) To add anchors in web page

(B) To mark the ending of a paragraph of document

(C) To quickly jump to specific location in document

(D) To add hyperlinks in webpage

20. Which of the following is not valid version of MS Office?

A) Office XP

(B) Office Vista

(C) Office 2007

(D) None of above


specific training

17. Thesaurus tool in MS Word is used for

(A) Spelling suggestions

(B) Grammar options

(C) Synonyms and Antonyms words

(D) All of above

18. Why Drop Caps are used in document?

(A) To drop all the capital letters

(B) To automatically begin each paragraph with capital letter

(C) To begin a paragraph with a large dropped initial capital letter

(D) None of above

19. A bookmark is an item or location in document that you identify as a name for future
reference. Which of the following task is accomplished by using bookmarks?

(A) To add anchors in web page

(B) To mark the ending of a paragraph of document

(C) To quickly jump to specific location in document

(D) To add hyperlinks in webpage

20. Which of the following is not valid version of MS Office?

A) Office XP

(B) Office Vista

(C) Office 2007

(D) None of above


specific training

21. You cannot close MS Word application by

(A) Choosing File menu then Exitsubmenu.

(B) Press Alt+F4

(C) Click X button on title bar

(D) From File menu choose Close submenu

22. The key F12 opens a

(A) Save As dialog box

(B) Open dialog box

(C) Save dialog box

(D) Close dialog box

23. What is the short cut key to open the Open dialog box?

(A) F12

(B) Shift F12

(C) Alt + F12

(D) Ctrl + F12

24. A feature of MS Word that saves the document automatically after certain
interval is available on

(A) Save tab on Options dialog box

(B) Save As dialog box

(C) Both of above

(D) None of above


specific training

25. Which of the following is not available on the Ruler of MS Word screen?

(A) Tab stop box

(B) Left Indent

(C) Right Indent

(D) Center Indent

E) All of them are available on ruler

26. Which file starts MS Word?

(A) Winword.exe

(B) Word.exe

(C) Msword.exe

(D) Word2003.exe

27. If you want to keep track of different editions of a document which features will you
use?

(A) Editions

(B) Versions

(C) Track Change

(D) All of above

28. Background color or effects applied on a document is not visible in

(A) Web layout view

(B) Print Layout view

(C) Reading View

(D) Print Preview


specific training

29. What is a portion of a document in which you set certain page formatting
options?

(A) Page

(B) Document

(C) Section

(D) Page Setup

30. Borders can be applied to

(A) Cells

(B) Paragraph

(C) Text

(D) All of above

31. Which of the following is not a type of page margin?

(A) Left

(B) Right

(C) Center

(D) Top

32. What is the default left margin in Word 2003 document?

(A) 1"

(B) 1.25"

(C) 1.5"

(D) 2"
specific training

33. Portrait and Landscape are

(A) Page Orientation

(B) Paper Size

(C) Page Layout

(D) All of above

34. If you need to change the typeface of a document, which menu will you choose?

(A) Edit

(B) View

(C) Format

(D) Tools

35. Which of the following is not a font style?

(A) Bold

(B) Italics

(C) Regular

(D) Superscript

36. What happens when you click on Insert >> Picture >> Clip Art

(A) It inserts a clipart picture into document

(B) It lets you choose clipart to insert into document

(C) It opens Clip Art taskbar

(D) None of above


specific training

37. Which option is not available in Insert Table Autofit behavior?

(A) Fixed Column Width

(B) AutoFit to Contents

(C) Autofit to Window

(D) Autofit to Column

38. To autofit the width of column

(A) Double click the right border of column

(B) Double click the left border of column

(C) Double click the column header

(D) All of above

39. Which of the following statement is false? ?

(A) You can set different header footer for even and odd pages

(B) You can set different page number formats for different sections

(C) You can set different header footer for first page of a section

(D) You can set different header and footer for last page of a section

40. Where can you change the vertical alignment?

(A) Formatting toolbar

(B) Paragraph dialog box

(C) Page Setup dialog box

(D) Standard toolbar


specific training

41. AutoCorrect was originally designed to replace words as you type.

(A) Short, repetitive

(B) Grammatically incorrect

(C) Misspelled

(D) None of the above

42. Which of the following is the second step in creating a macro?

(A) Start recording

(B) Using your mouse or keyboard, perform the task you want to automate

(C) Assign a keyboard shortcut to the macro

(D) Give the macro a name

43. In Word, the mailing list is known as the .

(A) Data sheet

(B) Source

(C) Data source

(D) Sheet

44. Which of the following is not one of the three ‘Mail Merge Helper’steps?

(A) Merge the two files

(B) Create the main document

(C) Set the mailing list parameters

(D) Create the data source


specific training

45. Which of the following button will allow you to add, delete, or change
records in your

Data Source?

(A) ‘Data Source’ button

(B) ‘Edit’ button

(C) ‘Edit Data Source’ button

(D) ‘Data editing’ button

46. It is possible to a data source before performing a merge.

(A) Create

(B) Modify

(C) Sort

(D) all of the above

47. Comments can be added to cells using…..

(A) Edit -> Comments

(B) Insert -> Comment

(C) File -> Comments

(D) View –> Comments

48. Which of the following is not a valid Zoom percentage in Excel?

(A) 10

(B) 100

(C) 300

(D) 500
specific training

49. The spelling tool is placed on toolbar

(A) Standard

(B) Formatting

(C) Drawing

(D) Reviewing

50. Which of the following is not a valid data type in Excel?

(A) Number

(B) Character

(C) Label

(D) Date/Time

51. Comments put in cells are called …..

(A) Smart Tip

(B) Cell Tip

(C) Web Tip

(D) Soft Tip

52. Which menu option can be used to split windows into two?

(A) Format -> Window

(B) View -> Window-> Split

(C) Window -> Split

(D) View –> Split


specific training

53. You can activate a cell by


(A) Pressing the Tab key
(B) Clicking the cell
(C) Pressing an arrow key
(D) All of above

54. When you use the fill effects in the format data series dialog box, you can
not
(A) rotate text on the chart
(B) select a foreground color
(C) select a pattern
(D) select a background color

55. To insert three columns between columns D and E you would


(A) Select column D
(B) Select column E
(C) Select columns E, F and G
(D) Select columns D, E, and F

56. Hyperlinks cannot be


(A) Special shapes like stars and banners
(B) Drawing objects like rectangles ovals
(C) Pictures
(D) All can be hyperlinks
specific training

57. You can add an image to a template by clicking the Insert Picture From File
button on the …. Toolbar.

(A) Standard

(B) Formatting

(C) Drawing

(D) Picture

58. To drag a selected range of data to another worksheet in the same


workbook, use the

(A) Tab key

(B) Alt key

(C) Shift key

(D) Ctrl key

59. When you print preview a worksheet

(A) the entire worksheet is displayed

(B) the selected range is displayed

(C) the active portion of the worksheet is displayed

(D) a, b and c

60. You can open the Sort dialog box by choosing Sort from the ….. menu

(A) View

(B) Format

(C) Tools

(D) Data
specific training

61. When working in the page break preview, you can

(A) view exactly where each page break occurs

(B) add or remove page breaks

(C) change the print area

(D) all of above

62. Which of the following is not a valid Zoom percentage in Excel?

(A) 10

(B) 100

(C) 300

(D) 500

63. The spelling tool is placed on toolbar

(A) Standard

(B) Formatting

(C) Drawing

(D) Reviewing

64. Formatting a cell in Currency, you can specify

(A) Decimal Places

(B) Currency Symbol

(C) Both of above

(D) None of above


specific training

65. What is entered by the function =today()

A) The date value for the day according to system clock

(B) The time value according to system clock

(C) Today’s date as Text format

(D) All of above

66. Which function will you use to enter current time in a worksheet cell?

(A) =today()

(B) =now()

(C) =time()

(D) =current Time()

67. Merge cells option can be applied from

(A) Format Cells dialog box Alignment Tab

(B) Formatting toolbar

(C) Both of above

(D) None of above

68. Which of the following format you can decide to apply or not in AutoFormat
dialog box?

(A) Number format

(B) Border format

(C) Font format

(D) All of above


specific training

69. How can you remove borders applied in cells?

(A) Choose None on Border tab of Format cells

(B) Open the list on Border tool in Formatting toolbar then choose first tool (no
border)

(C) Both of above

(D) None of above

70. You can set Page Border in Excel from

(A) From Border tab in Format Cells dialog box

(B) From Border tool in Formatting toolbar

(C) From Line Style tool in Drawing toolbar

(D) You can not set page border in Excel

71. You can check the conditions against when applying conditional
formatting

(A) Cell value

(B) Formula

(C) Both of above

(D) None of above

72. When a range is selected, how can you activate the previous cell?

A) Press the Alt key

(B) Press Tab

(C) Press Enter

(D) None of above


specific training

73. Each excel file is a workbook that contains different sheets. Which of the
following cannot be a sheet in workbook?
(A) worksheet
(B) chart sheet
(C) module sheet
(D) data sheet
74. Which of the following Excel screen components can NOT be turned on or off?
(A) Formula Bar
(B) Status Bar
(C) Tool Bar
(D) None of above
75. Which of the following option is not available in Paste Special dialog box?
(A) Add
(B) Subtract
(C) Divide
(D) SQRT
76. Which of the cell pointer indicates that you can fill series?
(A) Doctor’s symbol (Big Plus)
(B) small thin plus icon
(C) Mouse Pointer with anchor at the tip

(D) None of above


specific training

77. Which of the following is an absolute cell reference?

(A) !A!1

(B) $A$1

(C) #a#1

(D) A1

78. Which symbol must all formula begin with?

(A) =

(B) +

(C) (

(D) @

79. Which of the following formulas is not entered correctly?

(A) =10+50

(B) =B7*B1

(C) =B7+14

(D) 10+50

80. Which of the following formulas will Excel Not be able to calculate?

(A) =SUM(Sales)-A3

(B) =SUM(A1:A5)*.5

(C) =SUM(A1:A5)/(10-10)

(D) =SUM(A1:A5)-10
specific training

81. A worksheet range is a

(A) A command used for data modeling

(B) A range of values such as from 23 to 234

(C) A group of cells

(D) A group of worksheets

82. The auto calculate feature

(A) Can only add values in a range of cells

(B) Provides a quick way to view the result of an arithmetic operation on a


range of cells

(C) Automatically creates formulas and adds them to a worksheet

(D) A and c

83. Excel uniquely identifies cells within a worksheet with a cell name

(A) Cell names

(B) Column numbers and row letters

(C) Column letters and row numbers

(D) Cell locator coordinates

84. To drag a selected range of data to another worksheet in the same


workbook, use the

(A) Tab key

(B) Alt key

(C) Shift key

(D) Ctrl key


specific training

85. Hyperlinks can be

(A) Text

(B) Drawing objects

(C) Pictures

(D) All of above

86. To activate the previous cell in a pre-selected range, press

(A) The Alt key

(B) The Tab key

(C) The Enter key

(D) None of the above

87. Which button do you click to add up a series of numbers?

(A) The autosum button

(B) The Formula button

(C) The quick total button

(D) The total button

88. When the formula bar is active, you can see

(A) The edit formula button

(B) The cancel button

(C) The enter button

(D) All of the above


specific training

89. In a worksheet you can select

(A) The entire worksheet

(B) Rows

(C) Columns

(D) All of the above

90. Which area in an excel window allows entering values and formulas

(A) Title bar

(B) Menu bar

(C) Formula bar

(D) Standard toolbar

91. To edit in an embedded excel worksheet object in a word document

(A) Use the excel menu bar and toolbars inside the word application

(B) Edit the hyperlink

(C) Edit the data in a excel source application

(D) Use the word menu bar and toolbars

92. To create a formula, you can use:

(A) Values but not cell references

(B) Cell references but not values

(C) Values or cell references although not both at the same time

(D) Value and cell references


specific training

93. Status indicators are located on the

(A) Vertical scroll bar

(B) Horizontal scroll bar

(C) Formula bar

(D) Standard toolbar

94. An excel workbook is a collection of

(A) Workbooks

(B) Worksheets

(C) Charts

(D) Worksheets and charts

95. Excel files have a default extension of

(A) Xls

(B) Xlw

(C) Wk1

(D) 123

96. Except for the …… function, a formula with a logical function shows the word
“TRUE” or “FALSE” as a result

(A) IF

(B) AND

(C) OR

(D) NOT
specific training

97. Macros are “run” or executed from the …..menu.

(A) Insert

(B) Format

(C) Tools

(D) Data

98. You can open the consolidate dialog box byt choosing Consolidate from
the ….. menu.

(A) IF

(B) AND

(C) OR

(D) NOT

99. How are data organized in a spreadsheet?

(A) Lines and spaces

(B) Layers and planes

(C) Rows and columns

(D) Height and width

100. Gridlines

(A) May be turned off for display but turned on for printing

(B) May be turned on or off for printing

(C) The be turned off for display and printing

(D) a, b and c
specific training

Programming
1. Small Large Sum
Write a function SmallLargeSum(array) which accepts the array as an argument or
parameter, that performs the addition of the second largest element from the
even location with the second largest element from an odd location?

Rules:

All the array elements are unique.


If the length of the array is 3 or less than 3, then return 0.
If Array is empty then return zero.
Sample Test Case 1:

Input:

321754

Output:

Explanation: The second largest element in the even locations (3, 1, 5) is 3. The
second largest element in the odd locations (2, 7, 4) is 4. So the addition of 3 and
4 is 7. So the answer is 7.

Sample Test Case 2:

Input:

4079642

Output:

10
Solution: At first we’ve to take input from the user i.e in the main
function. Then we’ve to create two different arrays in which the first
array will contain all the even position elements and the second one
will contain odd position elements. The next step is to sort both the
arrays so that we’ll get the second-largest elements from both the
arrays. At last, we’ve to add both the second-largest elements that we
get from both the arrays. Display the desired output in the main
function.

#include <bits/stdc++.h>
using namespace std;
int smallLargeSum(int *arr, int n) {
if(n <= 3) {
return 0;
}
//Here we use vector because we don't know the array size,
//we can use array also but vector gives us more functionality than
array
vector<int> arrEven, arrOdd;
//Break array into two different arrays even and odd
for(int i = 0; i < n; i++) {
//If Number is even then add it into even array
if(i % 2 == 0) {
arrEven.push_back(arr[i]);
}
else {
arrOdd.push_back(arr[i]);
}
}
//Sort the even array
sort(arrEven.begin(), arrEven.end());
//We use sort function from C++ STL library
//Sort the odd array
sort(arrOdd.begin(), arrOdd.end());
//Taking second largest element from both arrays and add them
return arrEven[1] + arrOdd[1];
}
// Driver code
int main()
{
int n;
cout<<"Enter How many elements you want to enter?\n";
cin>>n;
int arr[n];
//Get input from user
cout<<"Start entering the numbers\n";
for(int i = 0; i < n; i++) {
cin>>arr[i];
}
cout<<"Output is\n";
cout<<smallLargeSum(arr, n);
return 0;
}

2. Check Password

Write a function CheckPassword(str) which will accept the string as an


argument or parameter and validates the password. It will return 1 if
the conditions are satisfied else it’ll return 0?

The password is valid if it satisfies the below conditions:

It should contain at least 4 characters.


At least 1 numeric digit should be present.
1 Capital letter should be there.
Password should not contain space or slash.
The starting character should not be a number.
Sample Test Case:

Input:

bB1_89

Output:

#include<iostream>
#include<string.h>
using namespace std;
int CheckPassword(char str[]) {
int len = strlen(str);
bool isDigit = false, isCap = false, isSlashSpace=false,isNumStart=false;
//RULE 1: At least 4 characters in it
if (len < 4)
return 0;
for(int i=0; i<len; i++) {
//RULE 2: At least one numeric digit in it
if(str[i]>='0' && str[i]<='9') {
isDigit = true;
}
//RULE 3: At least one Capital letter
else if(str[i]>='A'&&str[i]<='Z'){
isCap=true;
}
//RULE 4: Must not have space or slash
if(str[i]==' '|| str[i]=='/')
isSlashSpace=true;
}
//RULE 5: Starting character must not be a number
isNumStart = (str[0]>='0' && str[0]<='9');
//FYI: In C++, if int data type function returns the true then it prints 1
and if false then it prints 0
return isDigit && isCap && !isSlashSpace && !isNumStart;
}
int main() {
char password[100];
cout<<"Enter the Password\n";
cin>>password;
cout<<"The output is =\n";
cout<<CheckPassword(password);
}

3. Calculate Binary Operations

Write a function CalculateBinaryOperations(str) that accepts the string


as an argument or parameter. The string should contains the binary
numbers with their operators OR, AND, and XOR?

A Means the AND Operation.


B Means the OR Operation.
C Means the XOR Operation.
By scanning the given string from left to right you’ve to calculate the
string and by taking one operator at a time then return the desired
output.

Conditions:

The priority of the operator is not required.


The length of the string is always Odd.
If the length of the string is null then return -1.
Sample Test Case:
Input:

1C0C1C1A0B1

Output:

Explanation:

The entered input string is 1 XOR 0 XOR 1 XOR 1 AND 0 OR 1.

Now calculate the string without an operator priority and scan the
string characters from left to right. Now calculate the result and return
the desired output.

Note: This will convert the char into the num (char – ‘0’) in the c++
language.

#include <bits/stdc++.h>
using namespace std;
int CalculateBinaryOperations(char* str)
{
int len = strlen(str);
//Let's consider the first element as a answer (because string can be a
single char)
int ans = str[0]-'0';
for(int i=1; i<len-1; i+=2)
{
int j=i+1;
//Performing operation for AND
if(str[i]=='A')
{
ans = ans & (str[j]-'0');
}
//Performing operation for OR
else if(str[i]=='B')
{
ans = ans | (str[j]-'0');
}
//Performing operation for XOR
else if(str[i]=='C')
{
ans = ans ^ (str[j]-'0');
}
}
return ans;
}
int main()
{
char str[100];
cout<<"Enter the String:\n";
cin>>str;
cout<<"The output is :\n";
cout<<CalculateBinaryOperations(str);
}

4. Find Maximum In An Array

Write a function FindMaxInArray, which will find the greatest number


from an array with its desired index? The greatest number and its
desired index should be printed in separate lines.

Sample Test Case:


Input:

10

15 78 96 17 20 65 14 36 18 20

Output:

96

#include<iostream>
using namespace std;
void FindMaxInArray(int arr[],int length)
{
int max=-1, maxIdx=-1;
for(int i = 0;i < length; i++)
{
if(arr[i] > max)
{
max = arr[i];
maxIdx = i;
}
}
cout<<"The Maximum element in an array is = \n";
cout<<max;
cout<<"\nAt the Index = \n";
cout<<maxIdx;
}
int main()
{
int n;
cout<<"How many elements you want to enter:\n";
cin>>n;
int a[n];
cout<<"Enter elements: \n";
for(int i=0;i<n;i++)
cin>>a[i];
FindMaxInArray(a,n);
}

5. Operation Choices

Write a function OperationChoices(c, a, b) which will accept three


integers as an argument, and the function will return:

(a + b) if the value of c=1.


(a – b) if the value of c=2.
(a * b) if the value of c=3.
(a / b) if the value of c=4.

Sample Test Case:

Input:

15

20

Output:

-5
Here, the value of the c is two i.e 2. So it’ll perform the operation as
subtraction (15, 20) and will return -5.

#include<iostream>
using namespace std;
int operationChoices(int c, int a , int b)
{
if(c==1)
{
return a + b;
}
else if(c==2)
{
return a - b;
}
else if(c==3)
{
return a * b;
}
else if(c==4)
{
return a / b;
}
}
int main()
{
int x, y, z;
int result;
cout<<"Enter c\n";
cin>>x;
cout<<"Enter two elements\n";
cin>>y;
cin>>z;
result = operationChoices(x, y, z);
cout<<"The result is ";
cout<<result;
}

6. Difference Of Sum

Write a function differenceofSum(a,b) which will take two integers as


an argument. You’ve to obtain the total of all the integers ranging from
1 to n (both inclusive) that are not divisible by b. You should also return
the distinction between the sum of the integers which are not divisible
by b with the sum of the integers divisible by b?

Consider: a and b are greater than 0. i.e a>0 and b>0. And their sum
should lies between the integral range.

Sample Test Case 1:

Input:

a = 6 and b = 30

Output:

285

Explanation:

The integers that are divisible by 6 are 6, 12, 18, 24, and 30 and their
sum is 90. The integers that are not divisible by 6 are 1, 2, 3, 4, 5, 7, 8,
9, 10, 11, 13, 14, 15, 16, 17, 19, 20, 21, 22, 23, 25, 26, 27, 28 and 29.
And their addition is 375.
The difference between them is (375 – 90) = 285.

Sample Test Case 2:

Input:

a = 10

b=3

Output:

19

7. Anagram Strings

Write a function to check whether the given strings are anagrams or


not. If the given strings are anagram then return ‘yes’ otherwise return
‘no’?

Sample Test Case 1:

Input:

1st: learn

2nd: simple

Output:

no
Sample Test Case 2:

Input:

1st: Listen

2nd: Silent

Output:

yes

Explanation:

The two strings Listen and Silent are anagrams because rearranging all
the characters from the second string forms the first string.

8. Product Small Pair

Write a function Productsmallpair(sum, arr) which will accept the two


integers sum and arr. These two integers will be used to find the arr(j)
and arr(k) where k is not equal to j.arr(j) and arr(k). k != j.arr(j) and
arr(k) should be the smallest elements from the array.

Rules:

If the value of n<2 or empty, then return -1.


If these pairs are not found then return the value as 0.
You should make sure that all the values are between the range of
integers.

Sample Test Case 1:


Input:

sum: 9

arr: 5 4 2 3 9 1 7

Output:

Solution:

From the given array of integers, you’ve to select the two smallest
integers which are 1 and 2. The addition of these two numbers is (1 + 2
= 3) which is less than 9(3 < 9). And the product of these two is 2 (2 x 1
= 2) so, the output we get is 2.

Sample Test Case 2:

Input:

sum: 4

arr: 9 8 -7 3 9 3

Output:

-21
9. Replace Character

Write a function Replacecharacter(Char str1, Char ch1, Int 1, Char ch2)


which has a string(str) and the two characters ch1 and ch2. Execute a
function in such a way that string str will return to its original string,
and all the events in ch1 are replaced by ch2 and vice versa?

Consider: The strings will have only alphabets in lower case.

Sample Test Case:

Input:

str: tervpro

ch1: e

ch2: p

Output:

tprvero

Solution:

All the ‘e’s in the string are replaced with the ‘p’ and ‘p’ is replaced with
the ‘e’.
10. Reverse a String

Write a function that will accept strings from the user and will reverse
the string word-wise. The last word will come as the first word in the
output and vice versa?

Sample Test Case 1:

Input:

terv pro

Output:

pro terv

Explanation:

The reverse string word-wise function is applied.

Sample Test Case 2:

Input:

Welcome to Sunday samayal

Output:

samayal Sunday to Welcome


11. Question

The function accepts two positive integers ‘r’ and ‘unit’ and a positive
integer array ‘arr’ of size ‘n’ as its argument ‘r’ represents the number
of rats present in an area, ‘unit’ is the amount of food each rat
consumes and each ith element of array ‘arr’ represents the amount of
food present in ‘i+1’ house number, where 0 <= i.
Note:
1. Return -1 if the array is null
2. Return 0 if the total amount of food from all houses is not sufficient
for all the rats.
3. Computed values lie within the integer range.

Example:

Input:

r: 7
unit: 2
n: 8
arr: 2 8 3 5 7 4 1 2

Output:
4

Explanation:

Total amount of food required for all rats = r unit


= 7 2 = 14.
The amount of food in 1st houses = 2+8+3+5 = 18. Since, the amount of
food in 1st 4 houses is sufficient for all the rats. Thus, output is 4.
C++ Solution

#include<bits/stdc++.h>
using namespace std;

int calculate (int r, int unit, int arr[], int n)


{
if (n == 0)
return -1;

int totalFoodRequired = r * unit;


int foodTillNow = 0;
int house = 0;

for (house = 0; house < n; ++house)


{
foodTillNow += arr[house];
if (foodTillNow >= totalFoodRequired)
{
break;
}
}
if (totalFoodRequired > foodTillNow)
return 0;
return house + 1;
}

int main ()
{
int r;
cin >> r;
int unit;
cin >> unit;
int n;
cin >> n;
int arr[n];

for (int i = 0; i < n; ++i)


{
cin >> arr[i];
}
cout << calculate (r, unit, arr, n);
return 0;
}

JAVA SOLUTION

import java.util.*;
class Main
{
public static int solve (int r, int unit, int arr[], int n)
{
if (arr == null)
return -1;
int res = r * unit;
int sum = 0;
int count = 0;
for (int i = 0; i < n; i++)
{
sum = sum + arr[i];
count++;
if (sum >= res)
break;
}
if(sum<res)
return 0;
return count;
}

public static void main (String[]args)


{
Scanner sc = new Scanner (System.in);
int r = sc.nextInt ();
int unit = sc.nextInt ();
int n = sc.nextInt ();
int arr[] = new int[n];

for (int i = 0; i < n; i++)


arr[i] = sc.nextInt ();
System.out.println (solve (r, unit, arr, n));
}
}

PYTHON SOLUTION

def calculate(r,unit,arr,n):
if n==0:
return -1

totalFoodRequired=r*unit
foodTillNow=0
house=0
for house in range(n):
foodTillNow+=arr[house]
if foodTillNow >= totalFoodRequired:
break
if totalFoodRequired > foodTillNow:
return 0

return house+1
r = int(input())
unit = int(input())
n = int(input())
arr = list(map(int,input().split()))
print(calculate(r,unit,arr,n))

12. QUESTION – 12

You are given a function,


int findCount(int arr[], int length, int num, int diff);

The function accepts an integer array ‘arr’, its length and two integer
variables ‘num’ and ‘diff’. Implement this function to find and return
the number of elements of ‘arr’ having an absolute difference of less
than or equal to ‘diff’ with ‘num’.
Note: In case there is no element in ‘arr’ whose absolute difference
with ‘num’ is less than or equal to ‘diff’, return -1.

Example:

Input:

arr: 12 3 14 56 77 13
num: 13
diff: 2

Output:
3

Explanation:

Elements of ‘arr’ having absolute difference of less than or equal to


‘diff’ i.e. 2 with ‘num’ i.e. 13 are 12, 13 and 14.
C++ SOLUTION

#include<bits/stdc++.h>
using namespace std;

int findCount(int n, int arr[], int num, int diff) {


int count = 0;
for (int i = 0; i < n; ++i)
{
if (abs(arr[i] - num) <= diff)
{
count++;
}
}
return count > 0 ? count : -1;
}
int main() {
int n;
cin >> n;
int arr[n];
for (int i = 0; i < n; ++i) {
cin >> arr[i];
}
int num; cin >> num;
int diff; cin >> diff;
cout << findCount(n, arr, num, diff);
}

JAVA SOLUTION

import java.util.*;
class Main
{
public static int findCount (int arr[], int length, int num, int diff)
{
int count = 0;
for (int i = 0; i < length; i++)
{
if (Math.abs (num - arr[i]) <= diff)
count++;
}
return count>0?count:-1;
}

public static void main (String[]args)


{
Scanner sc = new Scanner (System.in);
int n = sc.nextInt ();
int arr[] = new int[n];

for (int i = 0; i < n; i++)


arr[i] = sc.nextInt ();
int num = sc.nextInt ();
int diff = sc.nextInt ();

System.out.println (findCount (arr, n, num, diff));


}
}

PYTHON SOLUTION

def findCount(n, arr, num, diff):


count=0
for i in range(n):
if(abs(arr[i]-num)<=diff):
count+=1
if count:
return count
return 0
n=int(input())
arr=list(map(int,input().split()))
num=int(input())
diff=int(input())
print(findCount(n, arr, num, diff))

13. DECODE

N-base notation is a system for writing numbers that uses only n


different symbols, This symbols are the first n symbols from the given
notation list(Including the symbol for o) Decimal to n base notation are
(0:0, 1:1, 2:2, 3:3, 4:4, 5:5, 6:6, 7:7, 8:8, 9:9, 10:A,11:B and so on upto
35:Z).

Implement the following function

*char DectoNBase(int n, int num):**

The function accept positive integer n and num Implement the function
to calculate the n-base equivalent of num and return the same as a
string

Steps:

Divide the decimal number by n,Treat the division as the integer


division
Write the the remainder (in n-base notation)
Divide the quotient again by n, Treat the division as integer division
Repeat step 2 and 3 until the quotient is 0
The n-base value is the sequence of the remainders from last to first

Assumption:
1 < n < = 36
Example

Input

n: 12
num: 718

Output

4BA

Explanation

num = 718, divisor = 12, quotient=59, remainder=10(A).


num = 59, divisor = 12, quotient=4, remainder=11(B).
num = 4, divisor = 12, quotient=0, remainder=4(A).
Sample Input
n: 21
num: 5678

Sample Output

CI8

#include<bits/stdc++.h>
using namespace std;
string decitoNBase (int n, int num)
{
string res = "";
int quotient = num / n;

vector<int> rem;

rem.push_back(num % n);
while(quotient != 0)
{
rem.push_back(quotient % n);
quotient = quotient / n;
}

for (int i = 0; i < rem.size (); i++)


{
if (rem[i] > 9)
{
res = (char)(rem[i] - 9 + 64) + res;
}
else
res = to_string(rem[i]) + res;
}

return res;
}

int main ()
{
int n, num;
cin >> n>>num;

cout << decitoNBase(n, num);

return 0;
}
14. MATRIX EVEN ODD

You are required to input the size of the matrix then the elements of
matrix, then you have to divide the main matrix in two sub matrices
(even and odd) in such a way that element at 0 index will be considered
as even and element at 1st index will be considered as odd and so on.
Then you have sort the even and odd matrices in ascending order and
print the sum of second largest number from both the matrices.

Example

enter the size of array : 5


enter element at 0 index : 3
enter element at 1 index : 4
enter element at 2 index : 1
enter element at 3 index : 7
enter element at 4 index : 9
Sorted even array : 1 3 9
Sorted odd array : 4 7
Sum = 7

C SOLUTION

#include <stdio.h>

int main ()
{
int arr[100];
int length, i, j, oddlen, evenlen, temp, c, d;
int odd[50], even[50];

printf ("enter the length of array : ");


scanf ("%d", &length);
for (i = 0; i < length; i++)
{
printf ("Enter element at %d index : ", i);
scanf ("%d", &arr[i]);
}

if (length % 2 == 0)
{
oddlen = length / 2;
evenlen = length / 2;
}
else
{
oddlen = length / 2;
evenlen = (length / 2) + 1;
}

for (i = 0; i < length; i++) // seperation of even and odd array


{
if (i % 2 == 0)
{
even[i / 2] = arr[i];
}
else
{
odd[i / 2] = arr[i];
}
}

for(i = 0; i < evenlen - 1; i++) // sorting of even array


{
for (j = i + 1; j < evenlen; j++)
{
temp = 0;
if (even[i] > even[j])
{
temp = even[i];
even[i] = even[j];
even[j] = temp;
}
}
}

for (i = 0; i < oddlen - 1; i++) // sorting of odd array


{
for (j = i + 1; j < oddlen; j++)
{
temp = 0;
if (odd[i] > odd[j])
{
temp = odd[i];
odd[i] = odd[j];
odd[j] = temp;
}
}
}

printf ("\nSorted even array : "); // printing even array


for (i = 0; i < evenlen; i++)
{
printf ("%d ", even[i]);
}

printf ("\n");
printf ("Sorted odd array : "); // printing odd array
for (i = 0; i < oddlen; i++)
{
printf ("%d ", odd[i]);
}

printf ("\n\n%d", even[evenlen - 2] + odd[oddlen-2]); // printing


final result
}

JAVA SOLUTION

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;

public class Main {

public static void main(String[] args)


{
Scanner sc = new Scanner(System.in);
System.out.print("Enter size of array : ");
int arrsize = sc.nextInt();
int[] main = new int[arrsize];
ArrayList<Integer> even = new<Integer>ArrayList();
ArrayList<Integer> odd = new<Integer>ArrayList();

System.out.println("Enter "+arrsize+" Elements");

for (int i = 0; i < arrsize; i++)


main[i] = sc.nextInt();

for (int i = 0; i < arrsize; i++) {


if(i%2==0)
even.add(main[i]);
else
odd.add(main[i]);
}

Collections.sort(even);
Collections.sort(odd);

System.out.println("Sorted even array ");


for (int e : even)
System.out.print(e+" ");
System.out.println();

System.out.println("sorted odd array ");


for (int e : odd)
System.out.print(e+" ");
System.out.println();

int evensec=even.get(even.size()-2);
int oddsec=odd.get(odd.size()-2);

System.out.println("Second Largest Element in Even List


is:"+evensec);
System.out.println("Second Largest Element in Odd List
is:"+oddsec);
System.out.println("Sum Of Second Largest Element Of Odd and
Even List:"+(evensec+oddsec));
}
}

15. MATHS IS FUN

You are required to implement the following function:


int Calculate(int m, int n);
The function accepts 2 positive integers ‘m’ and ‘n’ as its arguments.You
are required to calculate the sum of numbers divisible both by 3 and 5,
between ‘m’ and ‘n’ both inclusive and return the same.
Note
0 < m <= n

Example

Input:

m : 12
n : 50

Output

90

Explanation:

The numbers divisible by both 3 and 5, between 12 and 50 both


inclusive are {15, 30, 45} and their sum is 90.

Sample Input

m : 100
n : 160

Sample Output

510
C SOLUTION

#include <stdio.h>

int Calculate (int, int);


int main ()
{
int m, n, result;
// Getting Input
printf ("Enter the value of m : ");
scanf ("%d", &m);
printf ("Enter the value of n : ");
scanf ("%d", &n);

result = Calculate (n, m);


// Getting Output

printf ("%d", result);


return 0;
}

int Calculate (int n, int m)


{
// Write your code here
int i, sum = 0;
for (i = m; i <= n; i++)
{
if ((i % 3 == 0) && (i % 5 == 0))
{
sum = sum + i;
}
}
return sum;
}
JAVA SOLUTION

import java.util.Scanner;
public class Main
{
int Calculate (int m, int n)
{
int sum = 0;
for (int i = m; i <= n; i++)
if ((i % 3 == 0) && (i % 5 == 0))
sum = sum + i;
return sum;
}
public static void main (String[]args)
{
Scanner sc = new Scanner (System.in);
System.out.println ("Enter the value of m and n");
int m = sc.nextInt ();
int n = sc.nextInt ();
Main q = new Main ();
int result = q.Calculate (m, n);
System.out.println (result);
}
}
16. Write a program to find the length of the longest common
subsequence between two strings.

def longest_common_subsequence(s1, s2):


m, n = len(s1), len(s2)
dp = [[0] * (n + 1) for _ in range(m + 1)]

for i in range(1, m + 1):


for j in range(1, n + 1):
if s1[i - 1] == s2[j - 1]:
dp[i][j] = dp[i - 1][j - 1] + 1
else:
dp[i][j] = max(dp[i - 1][j], dp[i][j - 1])

return dp[m][n]

string1 = input("Enter first string: ")


string2 = input("Enter second string: ")
print("Length of longest common subsequence:",
longest_common_subsequence(string1, string2))

17. Write a program to find the length of the longest palindrome


subsequence in a string.

def longest_palindrome_subsequence(s):
n = len(s)
dp = [[0] * n for _ in range(n)]

for i in range(n - 1, -1, -1):


dp[i][i] = 1
for j in range(i + 1, n):
if s[i] == s[j]:
dp[i][j] = dp[i + 1][j - 1] + 2
else:
dp[i][j] = max(dp[i + 1][j], dp[i][j - 1])

return dp[0][n - 1]

string = input("Enter a string: ")


print("Length of longest palindrome subsequence:",
longest_palindrome_subsequence(string))

18. Write a program to find all permutations of a string.

from itertools import permutations

def string_permutations(s):
return ["".join(p) for p in permutations(s)]

string = input("Enter a string: ")


print("All permutations:", string_permutations(string))

19. SMALEST PRODUCT

def ProductSmallestPair(sum, arr)

The function accepts an integers sum and an integer array arr of size n.
Implement the function to find the pair, (arr[j], arr[k]) where j!=k, Such
that arr[j] and arr[k] are the least two elements of array (arr[j] + arr[k]
<= sum) and return the product of element of this pair

NOTE

Return -1 if array is empty or if n<2


Return 0, if no such pairs found
All computed values lie within integer range
Example

Input

sum:9

size of Arr = 7

Arr:5 2 4 3 9 7 1

Output

Explanation

Pair of least two element is (2, 1) 2 + 1 = 3 < 9, Product of (2, 1) 2*1 = 2.


Thus, output is 2

Sample Input

sum:4

size of Arr = 6

Arr:9 8 3 -7 3 9

Sample Output

-21
#include <iostream>
#include <algorithm>

int productSmallestPair (int *array, int n, int sum)


{
int answer, temp, i, j, check;
if (n < 2)
{
answer = -1;
}
else
{
for (i = 0; i < n; i++)
{ // sorting of array
for (j = i + 1; j < n; j++)
{
if (array[i] > array[j])
{
temp = array[i];
array[i] = array[j];
array[j] = temp;
}
}
}
check = array[0] + array[1];
if (check <= sum)
{
answer = array[0] * array[1];
}
else
{
answer = 0;
}
}
return answer;
}

int main ()
{
int n, sum, result, i;
std::cin >> sum;
std::cin >> n;
int *array = new int[n];
for (i = 0; i < n; i++)
{
std::cin >> array[i];
}
result = productSmallestPair (array, n, sum);
std::cout << result;
delete[]array;
return 0;
}

20. MOVES

char*MoveHyphen(char str[],int n);

The function accepts a string “str” of length ‘n’, that contains alphabets
and hyphens (-). Implement the function to move all hyphens(-) in the
string to the front of the given string.

NOTE:- Return null if str is null.

Example :-
Input:

str.Move-Hyphens-to-Front

Output:

—MoveHyphenstoFront
Explanation:-

The string “Move-Hyphens -to-front” has 3 hyphens (-), which are


moved to the front of the string, this output is “— MoveHyphen”

Sample Input

Str: String-Compare
Sample Output-

-StringCompare

#include<bits/stdc++.h>
using namespace std;
string MoveHyphen (string s, int n)
{
int count = 0;
for (int i = 0; i < n;)
{
if (s[i] == '-')
{
count++;
s.erase (i, 1);
}
else
i++;
}
while (count--)
{
s = '-' + s;
}
return s;
}
int main ()
{
string s;
cin >> s;
int n = s.size ();
cout << MoveHyphen (s, n);
return 0;
}
Accenture conducts 3 assessment rounds in the Zonal Level Hiring Test.

The first section in Accenture Placement Paper is Cognitive, which is followed by Technical,
Coding, and then finally Communication. Accenture Placement Paper is Conducted

Round 1: Cognitive Assessment


No. of
Cognitive Assessment questions Time Difficulty
Verbal Ability 17 90 mins Moderate
(Shared)
Critical Reasoning and Problem 18 90 mins Moderate
solving (Shared)
Abstract Reasoning 15 90 mins Hard
(Shared)
Common Application and MS 12 90 mins Easy
Office (Shared)
Pseudo Code 18 90 mins Hard
(Shared)
Fundamental of Networking 10 90 mins Moderate
Security and Cloud (Shared)

Analysis of Cognitive Assessment Round

No. of Question: 90 Question


Time Allotted: 90 mins
Difficulty: Moderate
Cutoff: 60%

Note: This section has a separate cutoff of 60%- 65% and if you will not be able to clear this section
you will not be Qualified for the Next Round.

Round 2: Coding
Coding No. of questions Time Difficulty
Optional Language 2 45 mins Hard

C
C++
Dot Net
JAVA
Python

Analysis of Coding Round

No. of Question: 2 Question


Time Allotted: 45 mins
Difficulty: Hard
Cutoff: 60%

Note: This section has a separate cutoff of 55%- 60% and if you will not be able to clear this section
you will not be Qualified for the Next Round.

Round 3: Communication
Communication No. of questions Time Difficulty
Communication No. of questions Time Difficulty
Sentence Mastery 20 (Shared) 20 mins (Shared) Moderate
Vocabulary 20 (Shared) 20 mins (Shared) Hard
Fluency 20 (Shared) 20 mins (Shared) Hard
Pronunciation 20 (Shared) 20 mins (Shared) Hard

Analysis of Communication Round

No. of Question: 20 Question


Time Allotted: 20 mins
Difficulty: Hard
Cutoff: 50%

Note: This section has a separate cutoff of 50 and once you complete this section your Written Test
will be completed, and if you are able to Qualify the cutoff of this final round you will be called for
an Interview.

English Ability

This section comes under Cognitive Assessment Round, here is the list of topics under the English
Ability section:-

Sentence Correction
Prepositions
Grammar
Reading Comprehension
Synonyms & Antonym
Idioms and Phrases
Speech and Tenses
Article
Sentence Selection
Spotting Error
Sentence Arrangement

Time – 16 mins
Number of Question- 16 ques

Critical Reasoning and Problem Solving section

This section used to come under Cognitive Assessment Round in Logical Section but after the
pattern got updated this particular topic has now become a new internal section altogether, here is
the list of topics under the Critical Reasoning section:-

Arrangements
Blood Relations
Statement & Conclusions
Coding & Decoding
Agree Disagree Psychometric
Analogies
Inferred Meaning
Logical Sequence

Time – 18 min
Number of Question- 18 ques

Common Application and MS Office

Here below you will get detailed information about Accenture Common Application and MS Office
Curriculum. This is a new section being added in the selection process. This section is further
categorized into following subsection:

Microsoft Word
Microsoft Excel
Microsoft Access
Microsoft Power-point
Microsoft Outlook
Microsoft Publisher
+more

Analysis of Common Application and MS Office Section

Number of Questions:- 12 Ques


Total Time:- 12 min
Difficulty:- Moderate
Cut-off:- 65%

Note: This section has a separate cutoff of 65%- 70% and if you will not be able to clear this section
you will not be Qualified for the Next Round.

Abstract Reasoning Section:-

This section also used to come under Cognitive Assessment Round in Logical Section but after the
pattern got updated this particular topic has now become a new internal section altogether, here is
the list of topics under the Abstract Reasoning section:-

Visual Reasoning
Flowcharts-Visual Reasoning-DI
Directional Sense
Seating Arrangement

Time – 15 min
Number of Question- 15 ques

Fundamental Networking Security and Cloud

Here below you will get detailed information about Accenture Fundamental Networking Security
and Cloud Curriculum. This is a new section being added in the selection process. This section is
further categorized into following subsection:

Share resources in a client-server network


Authentication
Authorization
Firewalls
+more

Analysis of Fundamental Networking Security and Cloud Section


Number of Questions:- 10 Ques
Total Time:- 10 mins
Difficulty:- Moderate- High
Cut-off:- 60%

Note: This section has a separate cutoff of 60%- 70% and if you will not be able to clear this section
you will not be Qualified for the Next Round.

Pseudo Code

Here below you will get detailed information about Accenture Pseudo Code Curriculum. This is
moderate level scoring section in Accenture Placement Exams.
Analysis of Pseudo Code Section

Number of Questions:- 18 Ques


Total Time:- 18 mins
Difficulty:- Moderate
Cut-off:- 70%

Note: This section has a separate cutoff of 70% and if you will not be able to clear this section you
will not be Qualified for the Next Round.

Coding

Here below you will get detailed information about Accenture Coding Curriculum.
C
C++
Java
Python

The coding platform is divided into two, one for writing the code and the other for output. We
should write the whole program.

Analysis of Coding Section

Number of Questions:- 2 Ques


Total Time:- 45 min
Difficulty:- High

Note: This section has a separate cutoff of 55%- 60% and if you will not be able to clear this section
you will not be Qualified for the Next Round.
Communication

Here below you will get detailed information about Accenture Communication Curriculum. This is
moderate level scoring section in Accenture Placement Exams.

Analysis of Communication Section

Number of Questions:- 20 Ques


Total Time:- 20 mins
Difficulty:- Moderate
Cut-off:- 70%

Note: This section has a separate cutoff of 70% and if you will not be able to clear this section you
will not be Qualified for the Next Round.

You might also like