Home / MCQ Bank / Computer
Computer Strings In Python Difficulty: Medium

What will be the output of the following Python code? print("abcdef".find("cd"))

Select the correct option to test your answer:

More Computer Questions

A factor which might cause an individual to consider using a computer in criminal activities is: What number will z in the sample code given below? int z, x=5, y= -10, a=4, b=2; z = x++ - --y*b/a; Which one of the following statements can be used to establish port 80 connection with www.examveda.com? Can a method be both overloaded and overridden in the same class in Java? What is the output of the following program? #include<stdio.h> #include<limits.h> int min_jump(int *arr, int len) { int j, idx, jumps[len]; jumps[len - 1] = 0; for(idx = len - 2; idx >= 0; idx--) { int tmp_min = INT_MAX; for(j = 1; j <= arr[idx] && idx + j < len; j++) { if(jumps[idx + j] + 1 < tmp_min) tmp_min = jumps[idx + j] + 1; } jumps[idx] = tmp_min; } return jumps[0]; } int main() { int arr[] ={9, 9, 9, 9, 9, 9, 9, 9, 9},len = 9; int ans = min_jump(arr,len); printf("%d\n",ans); return 0; }