Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions and answers in Compilers, Architecture, HPC
0
votes
1
answer
1
What is the output of the following Python code:
class A: def_init__(s): self.s=s def print(): pass a = A('John') a.print()
class A:def_init__(s): self.s=sdef print():passa = A('John')a.print()
ajayraho
167
views
ajayraho
answered
Feb 10
0
votes
1
answer
2
Automata
L = {w: w ε{0,1}*,Every substring of four symbols has at most two 0’s} Write a program using c++ or java. The input program is the string to be tested.The automata must be tested with v= {w: w ε L} and the output should either reject or accept the string v.
L = {w: w ε{0,1}*,Every substring of four symbols has at most two 0’s}Write a program using c++ or java.The input program is the string to be tested.The automata must ...
Psy Duck
332
views
Psy Duck
answered
Sep 15, 2022
Compilers, Architecture, HPC
finite-automata
theory-of-computation
turing-machine
+
–
0
votes
0
answers
3
lex program
%{ #include<stdio.h> int vowels=0; int cons=0; %} %% [aeiouAEIOU] {vowels++;} [a-zA-Z] {cons++;} %% int yywrap() { return 1; } int main( ) { printf("Enter the string..at end press^d\n"); yylex(); printf("No of vowels = ... cons); return 0; } when i run this program in ubuntu . iam able to enter the string but it does print the line for counting vowels and consonants
%{ #include<stdio.h int vowels=0; int cons=0;%}%%[aeiouAEIOU] {vowels++;}[a-zA-Z] {cons++;}%%int yywrap(){return 1;}int main( ){ printf("Enter the string..at end...
Suja1994
789
views
Suja1994
asked
Aug 1, 2018
0
votes
0
answers
4
Computer Science
(c) The following are some assembly language instructions of a hypothetical CPU. The instructions are written to find the remainder when 16 is divided by 7 and store the remainder in a memory location location assembly instruction 0 load 16 1 sub 7 2 bge ... conversions: (i) Convert 0101 10012 to decimal. (ii) Convert 4E16 to decimal. (iii) Convert 1100 00112 to hexadecimal.
(c) The following are some assembly language instructions of a hypothetical CPU. The instructions are written to find the remainder when 16 is divided by 7 and store the ...
CYKWAN
696
views
CYKWAN
asked
Apr 5, 2018
2
votes
0
answers
5
image processing
Could anyone help me with me image processing topic as I have done my Btech project in noise reduction in images but I have tried only those filters which are already existing but haven't done anything new in it. I need to prepare it for IIIT H interview.
Could anyone help me with me image processing topic as I have done my Btech project in noise reduction in images but I have tried only those filters which are already exi...
Adiaspirant
510
views
Adiaspirant
asked
May 24, 2017
3
votes
1
answer
6
Interest
Has anybody tried their hands in Raspberry Pi? Or have an experience with Arduino?? I meant in terms of practical exposure. If yes, kindly share your valuable insights and thoughts as well.
Has anybody tried their hands in Raspberry Pi? Or have an experience with Arduino?? I meant in terms of practical exposure. If yes, kindly share your valuable insights an...
s9k96
587
views
s9k96
answered
Apr 2, 2017
Compilers, Architecture, HPC
arduino
+
–
Help get things started by
asking a question
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register