#include <stdio.h> int main() { int r, c, a[10][10], b[10][10], sum[10][10], i, j; printf("\nEnter elements of 1st matrix:\n"); …
Read moreQ1 Which one of the following is a top-down parser? [A] Recursive descent parser [B] Operator precedence parser [C] An LR(k) parser [D] An LALR(k) p…
Read moreQ1 The Floyd-Warshall algorithm for all-pair shortest paths computation is based on [A] Greedy paradigm [B] Divide-and-Conquer paradigm [C] Dynamic …
Read moreQ1 Suppose, a circular queue of capacity (n–1) elements is implemented with an array of n elements. Assume that the insertion and deletion operation…
Read moreQ1 The binary equivalent of (1011·011)10 is equal to [A] 11·375 [B] 10·123 [C] 11·175 [D] 9·234 Solution 1*2^3+0*2^2+1*2^1+1*2^0 =8+2+1=11 0*1/2+1*1…
Read moreProgram def fc(num): bina=bin(num)[2:] complement='' for b in bina: if b=='1': complement+='0…
Read moreProgram arr=eval(input("enter list element")) a=arr[0] b=arr[1] for i in range(0,len(arr)): for j in range(i+1,len(arr)): if …
Read moreCopyright (c) 2021 NS All Right Reseved
Social Plugin