Programming Languages: Creators and Concepts

Test your knowledge of various programming languages, their creators, and core programming concepts including operators, pointers, and code execution

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Output of: vector (1 2 2 3 4 4)

  1. #6(1 2 2 3 4)
  2. #6(1 2 3 4)
  3. #6(1 2 2 3 4 4)
  4. #4(1 2 3 4)
Question 2 Multiple Choice (Single Answer)

(string-set! "DrScheme" 2 4) what will be the output?

  1. DrScheme
  2. Sh
  3. Error : string-set! accepts 1 argument, given 3
  4. Error: string-set!: expects type <mutable string> as 1st argument, given "DrScheme"
Question 3 Multiple Choice (Single Answer)

Which of the following is true with respect to comma?

  1. It has got last priority with Left to right grouping order.
  2. It has got last priority with right to left grouping order.
  3. It has got second last priority with right to left grouping order.
  4. None of the above.
Question 4 Multiple Choice (Single Answer)

Which of the following is true with respect to Relational Operators?

  1. Order of precedence is after Bitwise Operators
  2. Order of precedence is prior to Type casting operators
  3. The order of precedence is prior to Shift operators
  4. Order of precedence is next to Shift Operators
Question 5 Multiple Choice (Single Answer)

Which of the following has the highest priority? 1. Bitwise XOR 2. Bitwise OR 3. Logical OR 4. Logical AND

  1. Bitwise XOR
  2. Bitwise OR
  3. Logical OR
  4. Logical AND
Question 6 Multiple Choice (Single Answer)

Who is the inventor of COBOL

  1. John Backus
  2. Andres Hejlsberg
  3. Grace Hopper
  4. Brendan Eich
Question 7 Multiple Choice (Single Answer)

Who is the inventor of Delphi

  1. Anders Hejlsberg
  2. James Gosling
  3. Gurido Van Rossum
  4. Alan Cooper
Question 8 Multiple Choice (Single Answer)

Who is the inventor of Visual Basic

  1. Alan Cooper
  2. John Kemeny
  3. Bjarne Stroutsup
  4. Larry wall
Question 9 Multiple Choice (Single Answer)

Who is the inventor of BCPL?

  1. Brendan Eich
  2. Ken Thompson
  3. Richard Cooper
  4. Martin Richards
Question 10 Multiple Choice (Single Answer)

Who is the inventor of Java Script

  1. Grace Hooper
  2. Brendan Eich
  3. Ken Thompson
  4. Yukhiro Matsumoto
Question 11 Multiple Choice (Single Answer)

Who is the inventor of Perl

  1. Larry Wall
  2. Yukhiro Matsumoto
  3. Guido Van Rossom
  4. Dennis Ritchie
Question 12 Multiple Choice (Single Answer)

Who is the inventor of Ruby

  1. John Backus
  2. Larry wall
  3. Rasmus Leedorf
  4. Yukhiro Matsumoto
Question 13 Multiple Choice (Single Answer)

Who is the inventor of c#

  1. James Gosling
  2. Anders Hejlsberg
  3. Alan cooper
  4. John Backus
Question 14 Multiple Choice (Single Answer)

Who is the inventor of Java

  1. Bjarne Stroutsup
  2. Larry Wall
  3. James Gosling
  4. Dennis Ritchie
Question 15 Multiple Choice (Single Answer)

what is the output? main() { int x=20,y=35; x=y++ + x++; y= ++y + ++x; printf(“%d \t %dn”,x,y); }

  1. 56 93
  2. 57 94
  3. 58 95
  4. 60 98
Question 16 Multiple Choice (Single Answer)

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); }

  1. name
  2. 0
  3. empty string.
  4. none
Question 17 Multiple Choice (Single Answer)

3.What is the output?main() { int x=5; printf(“%d,%d,%dn”,x,x< <2,x>>2); }

  1. 5,1,20
  2. 5,10,20
  3. 5,20,1
  4. 5,15,25
Question 18 Multiple Choice (Single Answer)

4.What will be printed as the result of the operation below: main() { char *ptr = ” Cisco Systems”; *ptr++; ptr++; printf(“%sn”,ptr); }

  1. Cisco System
  2. isco Systems
  3. Cisco Systems
  4. Cisco
Question 19 Multiple Choice (Single Answer)

5.What is the output? main() { char s1[]=“TCS”; char s2[]= “systems”; printf(“%s”,s1); }

  1. 0
  2. null
  3. systems
  4. TCS
Question 20 Multiple Choice (Single Answer)

What is a thin-client application?

  1. A browser that uses a plug-in to process user data.
  2. 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
  3. An application that cannot be stopped by firewall
  4. An application compiled with the thin option of the javac command