C Language Basic Quiz Test!

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Heerendra
H
Heerendra
Community Contributor
Quizzes Created: 1 | Total Attempts: 1,960
| Attempts: 1,960 | Questions: 5
Please wait...
Question 1 / 5
0 %
0/100
Score 0/100
1. C language developed on pdp11 computer in bell laboratory?

Explanation

The statement is true. C language was indeed developed on the PDP-11 computer at Bell Laboratories. The language was created by Dennis Ritchie in the early 1970s as a successor to the B programming language. The PDP-11 computer was a popular machine at that time, and its hardware architecture heavily influenced the design of the C language.

Submit
Please wait...
About This Quiz
C Language Basic Quiz Test! - Quiz

The 'C language Basic Quiz Test' assesses foundational knowledge of the C programming language, focusing on its development, data types, pointers, operators, and control structures. Ideal for learners... see moreaiming to understand core C language concepts. see less

2. Ternary opretor is subsitute of?

Explanation

The correct answer is if..else. The ternary operator can be used as a substitute for an if..else statement in certain cases. It provides a concise way to write conditional statements and allows for a more compact code. The syntax of the ternary operator is "condition ? expression1 : expression2", where the condition is evaluated and if true, expression1 is executed, otherwise expression2 is executed. This makes it a suitable alternative to if..else statements when there are simple conditional checks that need to be made.

Submit
3. C language has 4 data types?

Explanation

The statement "c language has 4 data types" is incorrect. C language actually has several data types, including int, float, char, double, and more. Therefore, the correct answer is false.

Submit
4. Pointer has how many special characters?

Explanation

The correct answer is "two" because a pointer can have two special characters, which are the asterisk (*) and the ampersand (&). The asterisk is used to declare a pointer variable and to dereference a pointer, while the ampersand is used to get the address of a variable.

Submit
5. What's wrong in this:for(;;)

Explanation

The given code "for(;;)" is a shorthand way of writing an infinite loop. In this case, there are no conditions specified in the loop, so it will continue indefinitely. Therefore, the correct answer is "infiniteloop".

Submit
View My Results

Quiz Review Timeline (Updated): Mar 21, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 21, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Jan 28, 2010
    Quiz Created by
    Heerendra
Cancel
  • All
    All (5)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
C language developed on pdp11 computer in bell laboratory?
Ternary opretor is subsitute of?
C language has 4 data types?
Pointer has how many special characters?
What's wrong in this:for(;;)
Alert!

Advertisement