infosys coding comeptition

Infosys Pseudocede & Puzzle Solved – codewindow.in

Set Integer Emp_no=101Set Integer salary=0while (Emp_no=501) salary=salary+100 display salary end-while Question 1 Answer Question 1 What will happen when the following pseudocode is executed? A. Code executes successfully and value of salary is displayed once. B. Code executes successfully and nothing is displayed. C. Code executes successfully and value of salary is displayed infinite number

Infosys Pseudocede & Puzzle Solved – codewindow.in Read More »

Number Puzzle | Coding Problem Solve | codewindow.in

Number Puzzle Given a set of numbers, one can arrange them in any order but must pay a penalty equal to the sum of the absolute differences between adjacent numbers.Return the minimum penalty that must be paid. Input Specification:input1:Length of an integer array of numbers (2<=input1<=1000)input2:Integer array (1<=input2[i]<=10000) Output specification:Return the minimum penalty. Example:Input1: 3Input2:

Number Puzzle | Coding Problem Solve | codewindow.in Read More »

Infosys Sample Question Paper III | Codewindow.in

Q1: What will be the output of following pseudocode? a) SevenTwoHellob) OneHelloc) SevenTwod) Seven Answer: a) SevenTwoHello Explanation: As there are no break statements, all the display messages starting from “Seven” will be printed. Q2: What will be the output of following pseudocode? a) Compile time errorb) Code execute successfully and nothing is displayedc) Code

Infosys Sample Question Paper III | Codewindow.in Read More »

HackWithInfy | 2021

What is HackwithInfy? Hackwithinfy is a coding competition for engineering students graduating in the year 2022 across India. The program is specially designed to inculcate the culture of rapid problem-solving and innovative thinking early in academic life. HackWithInfy provides the perfect stepping-stone for students to explore their interest in programming and an opportunity to compete

HackWithInfy | 2021 Read More »

Infytq Python Solve

Which of the following functions call will execute successfully?Choose two correct optionsa. display_cat_details(“Black”,”Roger”,”Snow”)b. display_cat_details(“white”)c. display_cat_details(“Grey”, pet_name=”Grey)d. display_cat_details(“Brown”,”Nelly”) Answer a, d Explanation In this function, there are three parameters among them the last parameter is optional. In option b only one parameter is passed so it will not be a proper call. And in option c

Infytq Python Solve Read More »