Online Test for C
- Which of the following sorting algorithms does NOT have a worst-case running time of O(n2)?
Insertion sortMerge sortQuicksortBubble sort
- Only character or integer can be used in switch statement
TrueFalse
- What is the right way to access value of structure variable book{ price, page }?
printf("%d%d", book.price, book.page);printf("%d%d", price.book, page.book);printf("%d%d", price::book, page::book);printf("%d%d", price->book, page->book);
- The best data structure to check whether an arithmetic expression has balanced parenthesis is a
QueueStackTreeList
- Which of the following is NOT a valid Integer Constant?
3+343-76510,000
- Bitwise operators can operate upon?
double and charsfloats and doublesints and floatsints and chars
- Which is the correct syntax to declare constant pointer?
int *const constPtr;*int constant constPtr;const int *constPtr;A and C both
- What is variable in C?
It is a name of the memory locationIt is used to store dataIt’s value can be changed during execution of programAll of the above
- Which one of the following is not a linear data structure?
ArrayBinary TreeQueueStack
- The keywords are also called
Safe wordsStatic wordsReserved wordsReused words
Also Exercise
Post Your Question
Social Sharing
Search
Articles
Recently Added Jobs
Rajasthan High Court - Jodhpur Recruitment 2017 for Civil Judges
Last Date: 21 December, 2017
Last Date: 21 December, 2017
WBSEDCL Recruitment - 2017 for Office Executive
Last Date: 16 May, 2017
Last Date: 16 May, 2017
RECRUITMENT OF PROBATIONARY OFFICERS IN STATE BANK OF INDIA
Last Date: 06 March, 2017
Last Date: 06 March, 2017
UPSC Combined Medical Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015
UPSC Engineering Services Examination 2015
Last Date: 10 April, 2015
Last Date: 10 April, 2015