Programming Languages: Creators and Concepts
Test your knowledge of various programming languages, their creators, and core programming concepts including operators, pointers, and code execution
Questions
Output of: vector (1 2 2 3 4 4)
- #6(1 2 2 3 4)
- #6(1 2 3 4)
- #6(1 2 2 3 4 4)
- #4(1 2 3 4)
(string-set! "DrScheme" 2 4) what will be the output?
- DrScheme
- Sh
- Error : string-set! accepts 1 argument, given 3
- Error: string-set!: expects type <mutable string> as 1st argument, given "DrScheme"
Which of the following is true with respect to comma?
- It has got last priority with Left to right grouping order.
- It has got last priority with right to left grouping order.
- It has got second last priority with right to left grouping order.
- None of the above.
Which of the following is true with respect to Relational Operators?
- Order of precedence is after Bitwise Operators
- Order of precedence is prior to Type casting operators
- The order of precedence is prior to Shift operators
- Order of precedence is next to Shift Operators
Which of the following has the highest priority? 1. Bitwise XOR 2. Bitwise OR 3. Logical OR 4. Logical AND
- Bitwise XOR
- Bitwise OR
- Logical OR
- Logical AND
Who is the inventor of COBOL
- John Backus
- Andres Hejlsberg
- Grace Hopper
- Brendan Eich
Who is the inventor of Delphi
- Anders Hejlsberg
- James Gosling
- Gurido Van Rossum
- Alan Cooper
Who is the inventor of Visual Basic
- Alan Cooper
- John Kemeny
- Bjarne Stroutsup
- Larry wall
Who is the inventor of BCPL?
- Brendan Eich
- Ken Thompson
- Richard Cooper
- Martin Richards
Who is the inventor of Java Script
- Grace Hooper
- Brendan Eich
- Ken Thompson
- Yukhiro Matsumoto
Who is the inventor of Perl
- Larry Wall
- Yukhiro Matsumoto
- Guido Van Rossom
- Dennis Ritchie
Who is the inventor of Ruby
- John Backus
- Larry wall
- Rasmus Leedorf
- Yukhiro Matsumoto
Who is the inventor of c#
- James Gosling
- Anders Hejlsberg
- Alan cooper
- John Backus
Who is the inventor of Java
- Bjarne Stroutsup
- Larry Wall
- James Gosling
- Dennis Ritchie
what is the output? main() { int x=20,y=35; x=y++ + x++; y= ++y + ++x; printf(“%d \t %dn”,x,y); }
- 56 93
- 57 94
- 58 95
- 60 98
2.What will print out? main() { char *p1=“name”; char p2; p2=(char)malloc(20); memset (p2, 0, 20); while(*p2++ = *p1++); printf(“%sn”,p2); }
- name
- 0
- empty string.
- none
3.What is the output?main() { int x=5; printf(“%d,%d,%dn”,x,x< <2,x>>2); }
- 5,1,20
- 5,10,20
- 5,20,1
- 5,15,25
4.What will be printed as the result of the operation below: main() { char *ptr = ” Cisco Systems”; *ptr++; ptr++; printf(“%sn”,ptr); }
- Cisco System
- isco Systems
- Cisco Systems
- Cisco
5.What is the output? main() { char s1[]=“TCS”; char s2[]= “systems”; printf(“%s”,s1); }
- 0
- null
- systems
- TCS
What is a thin-client application?
- A browser that uses a plug-in to process user data.
- A distributed application where the client program does not process data, but instead passes data for processing to an enterprise bean running on an application server
- An application that cannot be stopped by firewall
- An application compiled with the thin option of the javac command