
C Basic_Questions_1

Quiz
•
Information Technology (IT)
•
University
•
Hard
Dinesh Kushwaha
Used 5+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the C code?
Hello World! x;
Hello World! followed by a junk value
Compile time error
Hello World!
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The format identifier ‘%i’ is also used for _____ data type.
char
int
float
double
3.
MULTIPLE CHOICE QUESTION
30 sec • 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
ariable can be of any length
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which is valid C expression?
int my_num = 100,000;
int my_num = 100000;
int my num = 1000;
int $my_num = 10000;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following C code?
Compile time error
Hello World! 34
Hello World! 1000
Hello World! followed by a junk value
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will happen if the following C code is executed?
It will cause a compile-time error
It will cause a run-time error
It will run without any error and prints 3
It will experience infinite looping
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Directives are translated by the
Pre-processor
Compiler
Linker
Editor
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Bài 25

Quiz
•
10th Grade - University
10 questions
Python Module-I Quiz

Quiz
•
University
15 questions
Bài 26

Quiz
•
10th Grade - University
10 questions
Quiz Meet 1 Mini SC Programing

Quiz
•
University
10 questions
Quiz 4

Quiz
•
University
10 questions
Fungsi DASPRO

Quiz
•
University
10 questions
Java Quiz (Basics)

Quiz
•
University
15 questions
Understanding Loops in C Programming

Quiz
•
1st Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University