Question 1

Company: ICICI_MCQ

Difficulty: medium

Problem Statement

Question 1

In Digital Electronics, a Complimentary MOSFET Inverter is used in an embedded system to establish a connection to multiple loads. If the load on the inverter increases steadily, then which of the following is the effect of the increase in the load on the VOH and VOL?

Question 2

The R code to create a line chart using a vector (v) wherein the numeric values 5, 7, 28, 3, and 41 denote the strength of students is as follows: v <- c(5, 7, 28, 3, 41); plot(v, type = "o", xlab = "Year", main = "Students year strength chart", ylab = "Strength"). From the following, which is the correct output that would be generated from the given code?

Question 3

What is the output of the following Python code: import numpy as np; arr = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]); result = np.square(arr[::2, ::-1]); print(result)

Question 4

You are creating a Tkinter application that requires the user to select a file from their computer. Which widget would you use to create the file selection dialog?

Question 5

What is the output of the following Python code: list1=[1,2,3,4,3,1,5,4]; s=set(list1); s.add(1); s.add(2); s.list(s); s=list(map(lambda val:val*5, s)); s.remove(5); s.add(5); print(s)

Question 6

What is the output of the following Python code: s=['b', 'b', 'b', 'b']; d={}; res=0; left=0; right=0; while(right<len(s)): res=max(res,right-left); if(s[right] in d): if(d[s[right]] < left): d[s[right]]=right; right+=1; else: left=d[s[right]]+1; d[s[right]]=right; right+=1; else: d[s[right]]=right; right+=1; print(max(res,right-left))