C Programming Unit-1 Test-2

Quiz
•
Computers
•
University
•
Hard
PRASHANT ATMAKURI
Used 14+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is not a valid C variable name?
int number;
float rate;
int variable_count;
int $main;
Answer explanation
Since only underscore and no other special character is allowed in a variable name, it results in an error.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is true for variable names in C?
They can contain alphanumeric characters as well as special characters
It is not an error to declare a variable to be one of the keywords(like goto, static)
Variable names cannot start with a digit
Variable can be of any length
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is short int in C programming?
The basic data type of C
Qualifier
Short is the qualifier and int is the basic data type
All of the mentioned
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following typecasting is accepted by C language?
Widening conversions
Narrowing conversions
Widening & Narrowing conversions
None of the mentioned
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT possible with any 2 operators in C?
Different precedence, same associativity
Different precedence, different associativity
Same precedence, different associativity
All of the mentioned
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Property which allows to produce different executable for different platforms in C is called?
File inclusion
Selective inclusion
Conditional compilation
Recursive macros
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What will be the output of the following C code?
int y = 10000;
int y = 34;
printf("Hello World! %d\n", y);
Hello World! 34
Hello World! 10000
Hello World! followed by a junk value
Compile time error
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
C programming syntax quiz

Quiz
•
University
15 questions
Python Basics

Quiz
•
KG - University
20 questions
CCE-III Programming in C Language

Quiz
•
University
18 questions
Programming in C language

Quiz
•
12th Grade - University
15 questions
C Language Quiz-1

Quiz
•
University - Professi...
20 questions
Zenorix 2023

Quiz
•
University
15 questions
Exam 1 Practice

Quiz
•
University
15 questions
002_Java Methods

Quiz
•
12th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University