Questions d'entretiens - Ui engineer

3 k

Questions d'entretien pour Ui Engineer partagées par les candidats

Principales questions d'entretien

Trier: Pertinence|Populaires|Date
Apple
On a demandé à un IOS UI Automation Engineer...15 octobre 2013

Write a function that determines which function is a mirror number. i.e. 12321 would return YES

6 réponses

function mirror(number){ number=number.toString(); length=number.length-1; for(i=0;i Moins

Using Python: def mirror(num): li = list(str(num)) length = len(li)-1 for i in range(length/2): if li[i] != li[length-i]: print 'NO' return print 'YES' mirror(12321) mirror(12341) Output >>> YES NO >>> Moins

JAVASCRIPT function mirror(num){ var a = []; var n = num.toString().split(""); for (var i= n.length - 1; i>=0; i--){ a.push(n[i]); } a = a.join(""); n = n.join(""); if (n == a){ return "YES"; } else{ return "NO"; } } mirror(12321); Moins

Afficher plus de réponses
Barco

Reverse a string of words "Hi I am John" as "John am I Hi" without using array functions like split , reverse or join?

5 réponses

tail recursive algo

str1 = "Hi abc tm" len1 = len(str1) ln = len1 space = " " str3 = [] cnt = 0 while len1 !=0: if str1[len1-1]!=" ": len1 = len1-1 cnt = cnt + 1 if str1[len1-1]==" ": len2 = ln-cnt while len2 != ln: if str1[len2] != " ": print(str1[len2],end="") len2 = len2 + 1 else: break print(space,end="") cnt = cnt + 1 len1 = len1-1 len2 = ln-cnt while len2 != ln: if str1[len2] != " ": print(str1[len2],end="") len2 = len2 + 1 else: break Moins

In Core Javascript const str = 'Hi I am John" as "John am I Hi'; const reverseString = () => { let temp = ""; for (let i = str.length; i >= 0; i--) { temp += str.charAt(i); } return temp; }; console.log(reverseString()); Moins

Afficher plus de réponses
Directi

#abc > ul.item li span + a Structure of the above selector

4 réponses

<div> <ul> <li></li> </ul> </div>

<div> <ul> <li> </li> </ul></div>

<div> <ul> <li></li> </ul> </div>

Afficher plus de réponses
ValueLabs

You have two methods: one method takes long time to run and the other completes in short time. You execute the long method first and after that you execute the short method. Which one will complete first. There is no setTimeout involved.

4 réponses

My answer: The long method finishes first and then short method executes and completes. Expected answer: The short method returns first! Moins

the short method returns first! is the right answer since two methods will run parallel. As javascript is async events handling. You may right if had quested him is the methods run in sequence. Moins

@Anonymous. It looks like you have not read the question well. It says that there is no setTimeout[) involved. If you have read the question, I have some questions for the answer that you provided. 1. Is asynchronous same as multithreading? I remember reading that JavaScript is single-threaded. 2. Suppose the short method depends on some value modified by the long method. As you said, lets suppose that the short method returns first even though it is next to the long method in sequence. In this case, how do you manage your program? Moins

Afficher plus de réponses
Signiwis Technologies

Technical question but basic on HTML CSS Java Script

4 réponses

Wat all rounds ??

Which program u got to execute?

But Java script is given more improtance

Afficher plus de réponses
GE

What is the difference between display inline and inline-block ?

4 réponses

inline &amp; inline-block elements takes space upto their content width. The main difference is inline element does not respect any dimensions given to them but inline-block does. Moins

What types of questions were asked in video interview?

It was behavioural like why do you think you are suitable for this position? Explain one critical situation you handled during your working with your last job. There were three questions only in video interview Moins

Afficher plus de réponses
Signiwis Technologies

Some small program in JavaScript

3 réponses

What program they asked

Reverse string

Program

Ness Digital Engineering

Javscript whats is output of this statement. console.log()? type question eg. console.log('1'+2+5), console.log(+true)

3 réponses

He will ask you answer as well as how did you find that

"1" is so it can understand remaining as also string that why 125, "true" = 1, "false" = 0, so true is 1 Moins

"1" string is so it can understand remaining as also string that why 125, "true" = 1, "false" = 0, so true is 1 Moins

Tekion

It was all straight forward, I was very impressed the way they conducted all interviews.

3 réponses

It was all straight forward, I was very impressed the way they conducted all interviews. Moins

What were the questions?

Could you add questions?

ValueLabs

What is the output of below program. var a = [1,2,3,4] for (var i=0; i<a.length; i++){ setTimeout(function(){ console.log(i) },1000) } ( My Ans : it will print 4 5 times as it will store the latest reference) Next They asked me : How can i print 1,2,3,4 by changing some code in above example

3 réponses

Some Correction : It will print 4 times "4". Fix: just use "let"(block scope) rather than "var" It should be : console.log(a[i]) to print (1,2,3,4) Moins

Yes, ofcourse, it'll print 4 times 4 (not 5 times). Another way could be: using closure function. var a = [1,2,3,4] for (var i=0; i Moins

My Answer : var a =[1,2,3,4] for (var i=0; i

1 - 10 sur 3 362 Questions d'entretien

Consultez les questions posées en entretiens pour des emplois similaires