ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ C LANGUAGE QUIZ C LANGUAGE MCQ Questions C LANGUAGE Questions Answer for Interview
English
Hindi
Question No. -
101
Report Bug
Which of the following is true for variable names in C?
C में variable नामों में से कौन सा सही है?
C में variable नामों में से कौन सा सही है?
A.
They can contain alphanumeric characters as well as special characters
उनमें अल्फ़ान्यूमेरिक वर्णों
के साथ-साथ विशेष वर्ण भी हो
सकते हैं
B.
It is not an error to declare a variable to be one of the keywords(like goto,
static)
यह एक चर को कीवर्ड घोषित करने
के लिए एक त्रुटि नहीं है (जैसे
गोटो, स्थिर)
C.
Variable names cannot start with a digit
परिवर्तनीय नाम एक अंक से शुरू
नहीं हो सकते हैं
D.
Variable can be of any length
चर किसी भी लम्बाई का हो सकता है
Explanation
According to the syntax for C variable name, it cannot start with a digit.
Question No. -
102
Report Bug
Which is valid C expression?
कौन सी मान्य C expression है?
कौन सी मान्य C expression है?
A.
int my_num = 100,000;
int my_num = 100,000;
B.
int my_num = 100000;
int my_num = 100000;
C.
int my num = 1000;
int my num = 1000;
D.
int $my_num = 10000;
int $my_num = 10000;
Explanation
Space, comma and $ cannot be used in a variable name.
Question No. -
103
Report Bug
Which of the following is not a valid variable name declaration?
निम्नलिखित में से कौन सा वैध variable नाम घोषणा नहीं है?
निम्नलिखित में से कौन सा वैध variable नाम घोषणा नहीं है?
A.
float PI = 3.14;
float PI = 3.14;
B.
double PI = 3.14;
double PI = 3.14;
C.
int PI = 3.14;
int PI = 3.14;
D.
#define PI 3.14
#define PI 3.14
Explanation
#define PI 3.14 is a macro preprocessor, it is a textual substitution.
Question No. -
104
Report Bug
Which of the following cannot be a variable name in C?
निम्नलिखित में से कौन सी में एक variable नाम नहीं हो सकता है?
निम्नलिखित में से कौन सी में एक variable नाम नहीं हो सकता है?
A.
volatile
volatile
B.
true
true
C.
friend
friend
D.
export
export
Explanation
volatile is C keyword.
Question No. -
105
Report Bug
The format identifier ‘%i’ is also used for _____ data type.
प्रारूप पहचानकर्ता % i ’का उपयोग _____ डेटा प्रकार के लिए भी किया जाता है।
प्रारूप पहचानकर्ता % i ’का उपयोग _____ डेटा प्रकार के लिए भी किया जाता है।
A.
char
char
B.
int
int
C.
float
float
D.
double
double
Explanation
Both %d and %i can be used as a format identifier for int data type.
Question No. -
106
Report Bug
Which data type is most suitable for storing a number 65000 in a 32-bit system?
32-बिट सिस्टम में नंबर 65000 को संग्रहीत करने के लिए कौन सा डेटा प्रकार सबसे उपयुक्त है?
32-बिट सिस्टम में नंबर 65000 को संग्रहीत करने के लिए कौन सा डेटा प्रकार सबसे उपयुक्त है?
A.
signed short
signed short
B.
unsigned short
unsigned short
C.
long
long
D.
int
int
Explanation
65000 comes in the range of short (16-bit) which occupies the least memory. Signed short ranges from -32768 to 32767 and hence we should use unsigned short.
Question No. -
107
Report Bug
Which of the following is a User-defined data type?
Which of the following is a User-defined data type?
A.
typedef int Boolean;
typedef int Boolean;
B.
typedef enum {Mon, Tue, Wed, Thu, Fri} Workdays;
typedef enum {Mon, Tue, Wed, Thu, Fri} Workdays;
C.
struct {char name[10], int age};
struct {char name[10], int age};
D.
all of the mentioned
all of the mentioned
Explanation
typedef and struct are used to define user-defined data types.
Question No. -
108
Report Bug
What is the size of an int data type?
int डेटा प्रकार का आकार क्या है?
int डेटा प्रकार का आकार क्या है?
A.
4 Bytes
4 Bytes
B.
8 Bytes
8 Bytes
C.
Depends on the system/compiler
Depends on the system/compiler
D.
Cannot be determined
Cannot be determined
Explanation
The size of the data types depend on the system.
Question No. -
109
Report Bug
What is short int in C programming?
C प्रोग्रामिंग में शॉर्ट इंट क्या है?
C प्रोग्रामिंग में शॉर्ट इंट क्या है?
A.
The basic data type of C
The basic data type of C
B.
Qualifier
Qualifier
C.
Short is the qualifier and int is the basic data type
Short is the qualifier and int is the basic data type
D.
All of the mentioned
सभी का उल्लेख है
Question No. -
110
Report Bug
Which is correct with respect to the size of the data types?
डेटा प्रकारों के आकार के संबंध में कौन सा सही है?
डेटा प्रकारों के आकार के संबंध में कौन सा सही है?
A.
char > int > float
char > int > float
B.
int > char > float
int > char > float
C.
char < int < double
char < int < double
D.
double > char > int
double > char > int
Explanation
char has less bytes than int and int has less bytes than double in any system
Question No. -
111
Report Bug
Which of the data types has the size that is variable?
Which of the data types has the size that is variable?
A.
int
int
B.
struct
struct
C.
float
float
D.
double
double
Explanation
Since the size of the structure depends on its fields, it has a variable size.
Question No. -
112
Report Bug
enum types are processed by _________
enum types are processed by _________
A.
Compiler
Compiler
B.
Preprocessor
Preprocessor
C.
Linker
Linker
D.
Assembler
Assembler
Question No. -
113
Report Bug
Which of the following statement is false?
Which of the following statement is false?
A.
Constant variables need not be defined as they are declared and can be defined
later
Constant variables need not be defined as they are declared and can be defined
later
B.
Global constant variables are initialized to zero
Global constant variables are initialized to zero
C.
const keyword is used to define constant values
const keyword is used to define constant values
D.
You cannot reassign a value to a constant variable
You cannot reassign a value to a constant variable
Explanation
Since the constant variable has to be declared and defined at the same time, not doing it results in an error.
Question No. -
114
Report Bug
Which of the following declaration is not supported by C?
Which of the following declaration is not supported by C?
A.
String str;
String str;
B.
char *str;
char *str;
C.
float str = 3e2;
float str = 3e2;
D.
Both String str; & float str = 3e2;
Both String str; & float str = 3e2;
Explanation
It is legal in Java, but not in C.
Question No. -
115
Report Bug
Which of the following declaration is illegal?
Which of the following declaration is illegal?
A.
char *str = “Best C programming classes by Sanfoundry”;
char *str = “Best C programming classes by Sanfoundry”;
B.
char str[] = “Best C programming classes by Sanfoundry”;
char str[] = “Best C programming classes by Sanfoundry”;
C.
char str[20] = “Best C programming classes by Sanfoundry”;
char str[20] = “Best C programming classes by Sanfoundry”;
D.
char[] str = “Best C programming classes by Sanfoundry”;
char[] str = “Best C programming classes by Sanfoundry”;
Explanation
char[] str is a declaration in Java, but not in C.
Question No. -
116
Report Bug
Which keyword is used to prevent any changes in the variable within a C program?
C प्रोग्राम के भीतर variable में किसी भी परिवर्तन को रोकने के लिए किस कीवर्ड का उपयोग किया जाता है?
C प्रोग्राम के भीतर variable में किसी भी परिवर्तन को रोकने के लिए किस कीवर्ड का उपयोग किया जाता है?
A.
immutable
immutable
B.
mutable
mutable
C.
const
const
D.
volatile
volatile
Explanation
const is a keyword constant in C program
Question No. -
117
Report Bug
MIDI means
एम आई डी आई का मतलब है
एम आई डी आई का मतलब है
A.
Multimedia Instrument Digital Information
मल्टीमीडिया इंस्ट्रूमेंट
डिजिटल इन्फॉर्मेशन
B.
Musical Instrument Digital Interface
म्यूजिकल इंस्ट्रूमेंट डिजिटल
इंटरफ़ेस
C.
Multimedia Instrument Digital Interface
मल्टीमीडिया इंस्ट्रूमेंट
डिजिटल इंटरफ़ेस
D.
Musical Information Digital Information
म्यूजिकल इन्फॉर्मेशन डिजिटल
इन्फॉर्मेशन
Question No. -
118
Report Bug
Which of the following is the lowest data model?
निम्न में से कौन सा डेटा मॉडल सबसे कम है?
निम्न में से कौन सा डेटा मॉडल सबसे कम है?
A.
physical data model
फिजिकल डेटा मॉडल
B.
logical data model
लॉजिकल डेटा मॉडल
C.
external data model
एक्सटर्नल डेटा मॉडल
D.
none of the above
इनमे से कोई भी नहीं
Question No. -
119
Report Bug
SQL stands for?
SQL का फुलफॉर्म क्या है?
SQL का फुलफॉर्म क्या है?
A.
Standard Query Language
स्टैंडर्ड क़्वेरी लैंग्वेज
B.
Structured Query Language
स्ट्रक्चर क़्वेरी लैंग्वेज
C.
Shortest Query Language
शॉर्टेस्ट क़्वेरी लैंग्वेज
D.
System Query Language
सिस्टम क़्वेरी लैंग्वेज
Question No. -
120
Report Bug
Copy and Xcopy are same in the sense
कॉपी और Xcopy समान हैं
कॉपी और Xcopy समान हैं
A.
Both are internal command of DOS
दोनों डॉस के इंटरनल कमांड हैं
B.
Both are external commands of DOS
दोनों DOS के एक्सटर्नल कमांड हैं
C.
Both A) and B)
A और B दोनों)
D.
Both can be used to copy file or group of files
दोनों का यूज़ फ़ाइल या फ़ाइलों
के ग्रुप को कॉपी करने के लिए
किया जा सकता है
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad