Answered step by step
Verified Expert Solution
Question
1 Approved Answer
fast please Q1: Code written using language A Line 1: x=3 Line 2: func1 {print x; } Line 3: func2({ Line 4: int x=9; Line
fast please
Q1: Code written using language A Line 1: x=3 Line 2: func1 {print "x"; } Line 3: func2({ Line 4: int x=9; Line 4: funci; Line 5: x=4.5) Line 4: func1 Line 5: func2 Line 6: funci Output: No compilation errors. Running: 3 9 4.5 Code written using language B Line 1: X3 Line 2: func1 0 {print "x"; } Line 3: func2 0 { Line 4: int x=9; Line 4: func1; Line 5: x=4.5) Line 4: funci Line 5: func2 Line 6: funci Output: Running: 3 3 Error x is int and assigned a float value Compare between language A and language B in terms of being 1) compiled vs. interpreted Inter Peter 2) imperative vs, declarative compiler 3) object-oriented vs. non-object-oriented and 4) weakly typed vs strongly typed 5) statically scoped vs. dynamically scoped * (12 pt) Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started